当我在执行此行时解析我的 Json 文件时
model.userProfileObj.userFirstName = [NSString stringWithFormat:@"%@",[[responseDict valueForKey:@"Profile"] valueForKey:@"first_name"]];
Profile 是我的字典, first_name 是它的内部变量。像:
[
    {
        "Profile": {
            "id": "13",
            "user_id": "13",
            "first_name": "Myname",
            "profile_image": "13-IMG_169.png",
        }
    }
]
将以下字符串分配给 model.userProfileObj.userFirstName 但我只需要 MyName 而不是 ( 和 " 在变量中。
(
    "Myname"
)