You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that the JSON you are trying to parse is not well formed. JSONKit is designed to parse JSON as it is defined by the JSON RFC 4627.
You can use something like JSONLint to quickly check if the JSON you are having problems with is, in fact, really JSON, and not some Javascript trying to pass itself off as JSON.
Hello,
I have this JSON string:
{"data":
{77: {"number": 0, "photo": ""},
{78: {"number": 3, "photo": ""},
...
};
My code is:
JSONDecoder *jsDecoder = [JSONDecoder decoder];
NSArray *arrayElements = [jsDecoder objectWithData:responseDara error:&msgError];
To decode gives the error "Error Domain = JKErrorDomain Code = 1 " Expected to "STRING" or a '}', not '77' "
What is wrong?
The text was updated successfully, but these errors were encountered: