解析json,是还是不是,

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

    NSDictionary *userJson;

    NSString *userJsonStr = [userStr JSONString];

    userJson= [userJsonStr objectFromJSONString];

    if (!userJson) {

        userJson = [userStr JSONValue];

    }

 

原文地址:https://www.cnblogs.com/guligei/p/3613398.html