Skip to content

A python package to convert your json to html tree view.

License

Notifications You must be signed in to change notification settings

abhaykatheria/json2tree

Repository files navigation

JSON 2 Tree Downloads

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.

Table of Contents

Getting Started

Installation

  • Install usig pip pip install json2tree

    or

  • 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 .

Usage

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.

Sample command

json2tree -j example.json -o output.html -t 1

Themes

Currently there are only 2 themes.

  • Theme 1

image

  • Theme 2

image

Contributors

@abhaykatheria @m1-key