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

JSON pretty-printing for multiple JSONs

parent c9720911
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -103,6 +103,10 @@ For an input from another command:


    command | perl -MJSON::PP -e '$x = JSON::PP->new->ascii->pretty; print $x->encode($x->decode(<>));'
    command | perl -MJSON::PP -e '$x = JSON::PP->new->ascii->pretty; print $x->encode($x->decode(<>));'


For multiple JSONs (one per line) as an input from another command:

    command | perl -MJSON::PP -ne '$x = JSON::PP->new->ascii->pretty; print $x->encode($x->decode($_));'

- - -
- - -


**Wireshark for remote machine**
**Wireshark for remote machine**