Charlotte Copeland Posted July 11, 2014 Share Posted July 11, 2014 I'm parsing JSON in an http_response event handler, and occasionally (I haven't dug into it enough to narrow down the actual problem) I end up with a call to llJson2List() on the fourth element of the handler (the http response) returning not a parsed list, but instead a list containing a single element, the string of the whole body.I am assuming this is symptomatic of the JSON parser having issue with something in the body (unicode?) but not sure how to dig into it, or how to correct it.Has anyone else seen this behavior? I normally get the body parsed out into it's normal key/value list, but like I said sometimes it goofs up and just gives me back a list of length 1 with the element being the complete text of the response.Thanks in advance! Link to comment Share on other sites More sharing options...
Xiija Posted July 12, 2014 Share Posted July 12, 2014 is your JSON type an object?..or an array? if it's an object, and the object has no arrays or objects within it, it should return just key - value pairs..? Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now