Live data from Hacker News

JSON Hero: Enhanced JSON structure visualization

jsonhero.io

41–50 of 203 posts

Re: JSON Hero: Enhanced JSON structure visualization

#41
post #26

I just want JSON with comments. I don't want YAML.

Curious why YAML doesn't work for you?

JSON is natively supported by many languages.

I don't know of any language that supports YAML without a 3rd party library.

Re: JSON Hero: Enhanced JSON structure visualization

#42
post #39
post #36

Earlier quoted context omitted.

the extension apparently can be configured to use a locally running instance of the server. But yes, by default it uses the remote version, and thus you post publicly the json, which may or may not be ideal depending on what you're doing.

The fact that it needs a server at all seems unnecessary. It's all written in JavaScript, and isn't doing anything that couldn't be done in a browser, I see no reason why this can't be an entirely client-side application.

Processing multi-GB files in the browser is... fun. Doing that kind of thing on a server is easier.

*I'm not justifying doing it on the server, especially for an application like this where yes: it can be done in the client.* But I do sympathize because I know from experience why it's easier to do it server-side, without any conspiracies.

I wrote Papa Parse[0] about 10 years ago, and back then at least, it was extremely difficult to stream large files in an efficient, reliable way. Web Workers make things slightly better, but there's so many issues with large-scale local compute in a browser tab.

A few examples:

- https://stackoverflow.com/questions/24708649/why-does-web-wo... (the answer actually came from Google+ which is still linked to, but no longer available; fortunately I summarized it in my post)

- https://stackoverflow.com/questions/27081858/how-can-i-make-...

You get deep enough into the weeds and eventually you realize you can make it work cross-browser if you know which browser you're using (YES, User-Agent does matter for things like this) and call you crazy for trying to find out:

- https://stackoverflow.com/questions/27084036/how-can-i-relia...

Despite all this, I *100%* agree and local-only processing is also a hard-rule for me as well. (That's why JSON-to-Go[1] does it all client-side. `go fmt` event compiles to WASM and runs in the browser!)

[0]: https://www.papaparse.com/

[1]: https://mholt.github.io/json-to-go/

Re: JSON Hero: Enhanced JSON structure visualization

#44

The first thing I see when I go to the site: JSON SUCKS Uh... It does? I remember when XML was the main data interchange format of the web. That sucked. JSON is amazing, terrific, wonderful, etc. in comparison.

Indeed. I’m (sorta) old and cranky and even I love JSON as a data interchange format. Because I had to use XML for years, including SOAP.

Re: JSON Hero: Enhanced JSON structure visualization

#45

The first thing I see when I go to the site: JSON SUCKS Uh... It does? I remember when XML was the main data interchange format of the web. That sucked. JSON is amazing, terrific, wonderful, etc. in comparison.

It's always strange to think that we went through formats like XML (and even earlier, XDR) before inventing something as seemingly simple and obvious as JSON.

Re: JSON Hero: Enhanced JSON structure visualization

#46
post #6

See also jsoncrack [1] which visualises JSON as n-ary tree data-structures. This project takes a different approach, in that it handles the displaying of JSON node leaf data in a more human way. E.g for hex colours showing a colour picker or a date picker for dates. What sets this tool apart however is the static analysis of the JSON data, which in doing so can uncover divergences or outliers in the data. E.g a singl…

jsoncrack cannot even open the simpliest of my json files (600K: too large), whilst this handled it easily.

Re: JSON Hero: Enhanced JSON structure visualization

#48
post #31

My number one requirement for a tool like this is that the JSON content never leaves the machine it's on. I can only imagine the kind of personal information or proprietary internal data that has been unwittingly transmitted due to tools like this. If my objective was to gain the secrets of various worldwide entities, one of the first things I would do is set up seemingly innocent Pastebins, JSON checkers, online fil…

Eric here (one of the creators of JSON Hero) and this is a really good point. We built JSON Hero earlier this year and partly wanted to use it to try out Cloudflare Workers and Remix, hence the decision to store in KV and use that kind of architecture. We're keen to update JSON Hero with better local-only support for this reason, and to make it easier to self-host or run locally.

Re: JSON Hero: Enhanced JSON structure visualization

#49

The first thing I see when I go to the site: JSON SUCKS Uh... It does? I remember when XML was the main data interchange format of the web. That sucked. JSON is amazing, terrific, wonderful, etc. in comparison.

Yea I really wanted to write "JSON is worse is better" because JSON is great and simple. We really just mean "reading complicated JSON files sucks"
Post reply on HN