A python library to create HTML tree view from JSON files. This can also be used as a command line tool for the same purpose.
- Install usig pip
pip install json2tree
- Clone this repo by running following command
git clone https://github.com/abhaykatheria/json2tree
- CD into the cloned repo
- Install using following command
pip install .
You can invoke the cli with typing json2tree command. There are 2 necessary arguments -
- -j : this flag will take the input json file.
- -o : this flag will set up the output file.
There is a third theme flag
- -t : this can be used to set the theme of html output.
json2tree -j example.json -o output.html -t 1
Currently there are only 2 themes.
@abhaykatheria @m1-key