Show HN: JSON Pizza – Beautify your JSON quickly
1–10 of 81 posts
Re: Show HN: JSON Pizza – Beautify your JSON quickly
#2Second time through, I read the instructions, and realised that the keyboard shortcuts are Control-based – this is less common for macOS, "Cmd+Enter" feels like a more consistent shortcut to use.
I think this should probably just auto-format all the time. It's only for formatting, so that wouldn't get in the way.
Re: Show HN: JSON Pizza – Beautify your JSON quickly
#3Feedback: First time through I just pasted some JSON and wondered why it didn't format. I hadn't realised the page had instructions on it – I had assumed it was just sample JSON. Second time through, I read the instructions, and realised that the keyboard shortcuts are Control-based – this is less common for macOS, "Cmd+Enter" feels like a more consistent shortcut to use. I think this should probably just auto-format…
Re: Show HN: JSON Pizza – Beautify your JSON quickly
#4Ctrl-B works.
Re: Show HN: JSON Pizza – Beautify your JSON quickly
#5Re: Show HN: JSON Pizza – Beautify your JSON quickly
#6 json_source_on_stdout | jq .Re: Show HN: JSON Pizza – Beautify your JSON quickly
#7Feedback: First time through I just pasted some JSON and wondered why it didn't format. I hadn't realised the page had instructions on it – I had assumed it was just sample JSON. Second time through, I read the instructions, and realised that the keyboard shortcuts are Control-based – this is less common for macOS, "Cmd+Enter" feels like a more consistent shortcut to use. I think this should probably just auto-format…
There's also apparently some other things going on; CTRL-u uppercases the word you're on. A link to more docs or something may be helpful.
Re: Show HN: JSON Pizza – Beautify your JSON quickly
#8Is the .pizza just for fun or am I missing a reference?
Also for fun
Re: Show HN: JSON Pizza – Beautify your JSON quickly
#9Non web based approach using jq ( https://stedolan.github.io/jq/ ): json_source_on_stdout | jq .
cat input.json | python3 -m json.tool
Re: Show HN: JSON Pizza – Beautify your JSON quickly
#10Feedback: First time through I just pasted some JSON and wondered why it didn't format. I hadn't realised the page had instructions on it – I had assumed it was just sample JSON. Second time through, I read the instructions, and realised that the keyboard shortcuts are Control-based – this is less common for macOS, "Cmd+Enter" feels like a more consistent shortcut to use. I think this should probably just auto-format…