Commit e8c7885e authored by Tomáš Szaniszlo's avatar Tomáš Szaniszlo
Browse files

Added tip: JSON pretty-printing oneliner

parent c8af9133
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -88,6 +88,12 @@ Find and print all files in cwd except those in directory `.git` and those match


- - -
- - -


**JSON pretty-printing oneliner**

    perl -MJSON::PP -MFile::Slurp -e '$x = JSON::PP->new->ascii->pretty; print $x->encode($x->decode(read_file($ARGV[0])));' file.json

- - -

**Other cheatsheets**
**Other cheatsheets**


* Markdown: <http://packetlife.net/media/library/16/Markdown.pdf>
* Markdown: <http://packetlife.net/media/library/16/Markdown.pdf>