I'm don't think any of this stuff will be interesting to anyone else, but it's just a place for me to write down things I want to remember. :-)
echo '{ "element0" : "hi", "element1" : "there" }' | python -m json.tool
prints:
{ "element0": "hi", "element1": "there" }
You can also cat a JSON file and pipe to the same command
No comments:
Post a Comment