How to add JSON String to 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];
can i do this way to add Json String into NSMutableDictionary or NSDictionary!
Convert your Json String into NSobject using SBJSON. And then add to your own dictionary. If we want to take Json stirng form this, Just Use convert Json writer method from SBJson Class.