A small tool to help you debug JSON files
A small tool to help you debug your JSON files, find out where the mass of your node are.
Clone this repo, and run bundle install
To see an example convert the provided example.json
from Rotten Tomatoes run the following commands
./treemap.rb convert -i example.json
./treemap.rb show
This should open a web page with a tree map for the example json
Usage:
treemap.rb convert -i, --input=INPUT
Options:
-i, --input=INPUT
-o, [--output=OUTPUT]
# Default: treemap.json
-d, [--max-depth=N]
# Default: 4
convert json file to treemap format
The code for displaying the treemap is based on d3 and derived from Mike Bostock’s treemap example