Last active
May 30, 2016 12:31
-
-
Save pankpan/c297e55d80c7d4ab7ffbc91133662b89 to your computer and use it in GitHub Desktop.
JSON formating
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat json | |
{"a":1,"b":2,"c":3,"d":4,"e":5} | |
# cat json | python -m json.tool | |
{ | |
"a": 1, | |
"b": 2, | |
"c": 3, | |
"d": 4, | |
"e": 5 | |
} | |
# cat json | jq . | |
{ | |
"e": 5, | |
"d": 4, | |
"c": 3, | |
"b": 2, | |
"a": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment