开发者

how to ignore the last unknow characters at the end of the json string

{

education = (

        {
    school =             {
        id = 108102169223234;
        name = psss;
    };
    type = College;
    year =             {
        id = 142833822398097;
        name = 2010;
    };
}

);

} !-- 1.2398s -->

the above leads me error as " NSLocalizedDescrip开发者_运维技巧tion=Unrecognised leading character"


not even close to valid JSON.. http://www.jsonlint.com/ Are you in charge of generating the feed? If so I would think it a lot better to fix the problem at the source than try re-factor your code to accommodate what ever that is that is getting returned. Are you using a JSON framework in Xcode to parse that string?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜