Show HN: JSON Pizza – Beautify your JSON quickly
11–20 of 81 posts
Re: Show HN: JSON Pizza – Beautify your JSON quickly
#12Non web based approach using jq ( https://stedolan.github.io/jq/ ): json_source_on_stdout | jq .
pbpaste | jq . | pbcopy
Pretty sure this is one of my most frequent commands.Re: Show HN: JSON Pizza – Beautify your JSON quickly
#13 const formattedText = JSON.stringify(JSON.parse(text), null, 2)`Re: Show HN: JSON Pizza – Beautify your JSON quickly
#14A privacy policy (even though its open source and one can go look up the code) would help alleviate user concerns adopting this.
Re: Show HN: JSON Pizza – Beautify your JSON quickly
#15I think a strong example would really help your case, the landing page now has already formatted json, and I can't figure out where to get a messy example from quickly.
Re: Show HN: JSON Pizza – Beautify your JSON quickly
#16There are a few features that can cut out a ton of unnecessary whitespace, like keeping short lists and maps on a single line, and keeping singleton list brackets tight.
Re: Show HN: JSON Pizza – Beautify your JSON quickly
#17Non web based approach using jq ( https://stedolan.github.io/jq/ ): json_source_on_stdout | jq .
Or on macOS, to quickly format the contents of your clipboard: pbpaste | jq . | pbcopy Pretty sure this is one of my most frequent commands.
Re: Show HN: JSON Pizza – Beautify your JSON quickly
#18Non web based approach using jq ( https://stedolan.github.io/jq/ ): json_source_on_stdout | jq .
Re: Show HN: JSON Pizza – Beautify your JSON quickly
#19Over the years I've seen a lot of developers take none open-source code, or private JSON data strings and paste them into random sites they find searching "json format" on google.
Does that make anyone else cringe? Is there anything we can do about this? Or is this just not a big deal and I shouldn't worry.