开发者

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

开发者 https://www.devze.com 2023-02-11 03:51 出处:网络
{ education =( { school ={ id = 108102169223234; name = psss; }; type = College; year ={ id = 142833822398097;

{

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

精彩评论

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