Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lastnameswayne/mongodboaflattenjson
https://github.com/lastnameswayne/mongodboaflattenjson
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lastnameswayne/mongodboaflattenjson
- Owner: lastnameswayne
- Created: 2022-02-20T14:33:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-02-20T14:43:31.000Z (over 2 years ago)
- Last Synced: 2024-04-20T17:57:49.396Z (7 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mongoDBOAflattenJSON
## Introduction
This is my submission for the MongoDB OA in Javascript. I spent a little under an hour on this in total.
## How to use
You can call my code with
```
cat example.json | node mongoDBOA.js
```after cloning/downloading my code. example.JSON can be any json file. I have added some sample JSON-files for testing purposes. I used code for reading JSON files from stdin from this github gist: https://gist.github.com/kristopherjohnson/5065599 but my solution at the bottom of the file is of course my own work!
This requires node, and I am using Node v14.15.5. You can read the output in the terminal.
I hope you like it!