开发者

{NSLocalizedDescription=Garbage after JSON}

开发者 https://www.devze.com 2023-01-21 14:04 出处:网络
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 alw

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; }/

0

精彩评论

暂无评论...
验证码 换一张
取 消