tags:

views:

19

answers:

1

I have a client's JSON files that he got from the NING exporter. I'm trying to load the data into PHP but seems like the json isnt properly formatted or something. SO PHP is not able to parse the JSON. I also used another PHP class to do it but that did not work either. Below is the content of one of the files

([{"id":"2492571:Note:75","contributorName":"16szgsc36qg2k","title":"Notes Home","description":"Welcome! To view all notes.","createdDate":"2008-11-14T08:44:58.821Z","updatedDate":"2008-11-14T08:44:58.821Z"}])

Help appreciated!

A: 

The parens at the beginning and end are not valid in JSON. It should parse after stripping those.

Ignacio Vazquez-Abrams
Ignacio, I had tried that, but did not work.
Ashwin
I tried that again and it works for the above JSON (which are the notes from the ning network). If I try it for a bigger file (~900kb) which contains members there is no output
Ashwin
It's hard to diagnose further without the actual data.
Ignacio Vazquez-Abrams