News for hackers. Stuff that matters.
Re:Show HN: JSON Pizza – Beautify your JSON quickly by dmortin on Thursday August 08, 2019 @02:22PM (#20647126)
You can do the same in the browser console. I don't really get why people need an online tool for this:

   copy(JSON.stringify(obj, null, 2))
obj can be parsed with JSON.parse if it is in text.
Re:Show HN: JSON Pizza – Beautify your JSON quickly by steve_taylor on Thursday August 08, 2019 @03:40PM (#20647871)
Even better, just open the JSON file in Firefox.
Re:Show HN: JSON Pizza – Beautify your JSON quickly by dmortin on Thursday August 08, 2019 @04:04PM (#20648104)
Not bad. I usually copy json data from the browser console, but for files this can be useful.
Re:Show HN: JSON Pizza – Beautify your JSON quickly by tobr on Thursday August 08, 2019 @06:23PM (#20649483)
> I don't really get why people need an online tool for this:

That’s rather condescending, and probably not true. Surely you must be able to think of reasons why someone would use a website instead of writing a one-line program.

Re:Show HN: JSON Pizza – Beautify your JSON quickly by dmortin on Friday August 09, 2019 @01:43AM (#20651627)
The only reason I can think of is if this is something which one very rarely needs. Otherwise, I'd think those who regularly handle JSON files are able to write a one line program.

And the JS console was only an example. Other languages can also pretty print JSON trivially. E.g. python.

Re:Show HN: JSON Pizza – Beautify your JSON quickly by beothorn on Friday August 09, 2019 @09:38AM (#20654162)
On chrome at least copy(Paste json here) is enough