I have a 1.5G JSON file. It is supposed to contain an array of objects, however there is an extra comma after the last object in the array.
selah@wwbp:~$ tail -n4 /data/selah/diabetes_tweets.json
"type": "retweet:reply",
"citation_url": "http://twitter.com/Garthicus/status/5903085804"
},
]
I tried editing with VI and some other text editors but they all froze. Is there an easy programmatic way to remove this comma with python?