解析json,是还是不是,

 NSString *userStr = [bodyJson valueForKeyNullReplace:@"user"];

    NSDictionary *userJson;

    NSString *userJsonStr = [userStr JSONString];

    userJson= [userJsonStr objectFromJSONString];

    if (!userJson) {

        userJson = [userStr JSONValue];

    }

 

posted @ 2014-03-20 12:10  路在脚下,  阅读(129)  评论(0编辑  收藏  举报