I'm using the JSON library floating around for Blackberry and following this answer in "How to parse the JSON response in Blackberry/J2ME?".
The problem I'm having is that I'm getting an error saying JSONObject has to begin with a "{"
. My JSON string is wrapped in [ ]
, which is something the web service does.
Libraries I've used for Android and iPhone stripped that, so I was wondering what is the best way around this problem? I don't think I can just parse out all [ ]
because I think those are used in multidimensional JSON strings.
Edit:
Here's an example:
[{"nid":"1","title":"test","image":"m0.jpg","by":"Presented by","by_name":"Inc.","summary":"..."}, {"nid":"6","title":"A","image":".jp[0.0] g","by":"Presented by","by_name":"Theatre","summary":""}]