Validating Json From Command Line Using `python -m Jsontool` Gives 'no Json Object Could Be Decoded'
I have a data.json file that I'm validating through the command line using python's json.tool, but it keeps giving me back an error message: $ python -m json.tool < data.json No
Solution 1:
It was because of the trailing comma after the last nested list [ "city", null, {} ]
. I accidentally left it in and JSON doesn't allow them.
Post a Comment for "Validating Json From Command Line Using `python -m Jsontool` Gives 'no Json Object Could Be Decoded'"