如何将 JSON 字符串添加到 NSDictionary ?
NSString *j_String @"{ "comp": [
{ "id": "1" },
{ "id": "2" },
{ "id": "3" }
],
"contact": [
{ "mail": "some@email.com", "name": "Name" },
{ "mail": "email@email.com", "name": "Name" }
]
}";
NSMutableDictionary *dic = [NSMutableDictionary dictionary];
[dic setValue:@"nvjd" forKey:j_String];
我可以通过这种方式将 Json 字符串添加到 NSMutableDictionary 或 NSDictionary 中吗?