https://github.com/mkrl/json2table
Creates a single table out of json object
https://github.com/mkrl/json2table
Last synced: 11 months ago
JSON representation
Creates a single table out of json object
- Host: GitHub
- URL: https://github.com/mkrl/json2table
- Owner: mkrl
- License: mit
- Created: 2017-05-09T10:48:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-05T17:31:31.000Z (almost 9 years ago)
- Last Synced: 2025-03-12T01:16:47.572Z (about 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# json2table
A pretty useless Node script that creates a single table out of json object. Ever dreamed of observing the entire JSON with all the nested objects in a single table? This thing does that. Soon(tm) to be a npm package.
Requirements
------------
- [json2csv](https://www.npmjs.com/package/flat)
- [flat](https://www.npmjs.com/package/flat)
Usage
-----
- Make sure you have NodeJS and all the requirements installed
- Change input JSON / output CSV file paths at the beginning of the script. Also you might want to change the amount of table rows to be displayed.
- Run `node json2table` via terminal or cmd.
Why does this exist?
--------------------
A couple of times my development team needed to take a look at all the JSON values and see if some of the objects are missing certain parameters. It is quite a dumb way to do that, but it was requested and here it is. The main clue of this code is to also generate table headers and add blank non-existing parameters to objects so all the nested objects have the same amount of similar parameters.