The Pretty JSON Revolution
ohler.com
The Pretty JSON Revolution
1–10 of 159 posts
Re: The Pretty JSON Revolution
#2Re: The Pretty JSON Revolution
#3`python3 -m json.tool somefile.json` or `cat foo.json | python3 -m json.tool` will print it in "one line per node" format. 3.9 introduces a --sort-keys switch for sorted objects also.
Re: The Pretty JSON Revolution
#4Re: The Pretty JSON Revolution
#5If you're on a mac or Linux system, you likely have a JSON formatter already installed `python3 -m json.tool somefile.json` or `cat foo.json | python3 -m json.tool` will print it in "one line per node" format. 3.9 introduces a --sort-keys switch for sorted objects also.
Re: The Pretty JSON Revolution
#6This beautiful post is missing a last section called "Gron: do away with json altogether and print something actually readable". That would be a good punchline!
Re: The Pretty JSON Revolution
#7I expected a Mona Lisa as json by the end of this article
Re: The Pretty JSON Revolution
#8If you're on a mac or Linux system, you likely have a JSON formatter already installed `python3 -m json.tool somefile.json` or `cat foo.json | python3 -m json.tool` will print it in "one line per node" format. 3.9 introduces a --sort-keys switch for sorted objects also.
Re: The Pretty JSON Revolution
#9Re: The Pretty JSON Revolution
#10That said, it is just another pun on the text as art thing. In that it doesn't really scale, and you are going to upset someone by not having a codified tool for automatically doing this. (I don't recall seeing align-regex in any popular tool.)