Live data from Hacker News

JSON Crack – Visualize JSON data into graphs

jsoncrack.com

41–50 of 100 posts

Re: JSON Crack – Visualize JSON data into graphs

#41
Once I was working with an api that used mongodb in the back. Mongo uses very large integers as ids and I was looking at the json generated through a json viewer extension in the browser. I was having problems because I couldn't find the document I was looking at in the database. Turns out, the viewer used the browser's JSON.parse and that was converting the id to a number and losing precision since it was so large. Ever since, I prefer to look at json raw first and then use formatters just to look at the shape, not the data.

Re: JSON Crack – Visualize JSON data into graphs

#45
post #36

If you indent your code manually then you can achieve something that I feel looks quite similar. So the example they give would be written as: {"squadName": "Super hero squad", "homeTown": "Metro City", "formed": 2016, "secretBase": "Super tower", "active": true, "members": [{"name": "Molecule Man", "age": 29, "secretIdentity": "Dan Jukes", "powers": ["Radiation resistance", "Turning tiny", "Radiation blast"]}, {"nam…

If you climb to the top of a really tall mountain you'll get a similar perspective to what Google Maps provides.

Re: JSON Crack – Visualize JSON data into graphs

#47
post #12

Looks good. Slight quibble, JSON with large value fields (eg: 4K text as a single line) blow out the containing box dimensions in the web visualiser. Maybe there's a flag to clip | wrap such values, if so I missed ny option to toggle it. ( I used MediaInfoCLI --output=JSON on some multitrack files from handbrake, the encode argument flags are a single large value )

ADDENDUM:

There's a ->Still appears to be a slight issue with very large nodes (because of very long lines as values) scaling out of the view and being tricky to navigate into view again.

Still a handy tool for certain JSON structures for that first overview.

Post reply on HN