I'm getting this error msg from the JSON result sent by the Twitter search API.
Any ideas on what it means & how to avoid it? Its kind of a random error, since 开发者_如何学Pythonit does not always appear.
-JSONValue failed. Error trace is: ( "Error Domain=org.brautaset.JSON.ErrorDomain Code=10 \"Garbage after JSON\" UserInfo=0x5c49900 {NSLocalizedDescription=Garbage after JSON}"
Thanks
Commenting this code solves the problem (SBJsonParser.m):
// We found some valid JSON. But did it also contain something else? /if (![self scanIsAtEnd]) { [self addErrorWithCode:ETRAILGARBAGE description:@"Garbage after JSON"]; return nil; }/
精彩评论