Thursday, November 27, 2014

Validating json files with python command line

If you ever want to validate a json file and you have not a json parser installed, you can always use python for the purpose: python -m json.tool < data.json
You can also use this approach to pretty print a mangled json file.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.