I did something stupid... I gathered a big tonne of json data and saved it in one file. I now find myself getting errors when I try JSON.parse(file) due to the fact that its JSON object after JSON object. Can anyone advise on how I can parse this data? The strcture looks as follows. The next entry is a object with the exact same structure.
{"purchase":
{
"amount": 34.595399,
"uid": 1282907706,
"user":
{
"id": xxxx
"name": "xxxx"
},
"dailycount": 135.82373100000001,
"productdetails":
{
"type": "shoes"
},
"details":
{
"gender": "male"
},
"createdin": "Asia/Tokyo",
"id": 147707740,
"comments": []}}