Re: Error in processing JSON files in Python

2015-03-31 Thread Denis McMahon
On Mon, 30 Mar 2015 14:27:14 -0700, Karthik Sharma wrote: > I have the following python program to read a set of JSON files do some > processing on it and dump them back to the same folder. However When I > run the below program and then try to see the output of the JSON file > using > > `cat fil

Re: Error in processing JSON files in Python

2015-03-30 Thread MRAB
On 2015-03-30 22:27, Karthik Sharma wrote: I have the following python program to read a set of JSON files do some processing on it and dump them back to the same folder. However When I run the below program and then try to see the output of the JSON file using `cat file.json | python -m json.

Error in processing JSON files in Python

2015-03-30 Thread Karthik Sharma
I have the following python program to read a set of JSON files do some processing on it and dump them back to the same folder. However When I run the below program and then try to see the output of the JSON file using `cat file.json | python -m json.tool` I get the following error `extra data