我如何检索 NSDictionary 中键的值是值已经有引号包围它
代码:
for(NSDictionary *dict in jsonData)
{
NSString *firstName = [dict valueForKey:@"name_forenames"];
NSString *lastName = [dict valueForKey:@"name_surnames"];
NSLog (@"%@ %@", firstName, lastName);
}
在我的字典中是:
(
{
"name_forenames" = Jordan;
"name_surnames" = Newton;
}, {
"name_forenames" = Jordan;
"name_surnames" = Newton;
}
)
因为它只是在我的 NSLog 中返回 null