johnezang/JSONKit — Issue #64: Error decoding JSonString
Author: pepobit
Created: 2011-11-25 18:21:04+00:00
State: open

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?