So I'm getting json-framework up and running on my project, but it needs help to understand that It is Jason String:
[{"id": "0", "name": "name", "info": "this information is", "tag" {"Id": "tag": "test tag"}, {"id": "37", "tag": "tag 2"}], "other": "zero"}, {{"Id": "36", "tag": "test tag" {"id": "{1}" "name": "name", "info": "this information is", "tag" }, {"Id": "37", "tag": "tag2"}], "other": "zero"} ]
Also help and shay The sample code is about how to go about this specific type Jason, in some way I can not find it in a single dictionary which I can read. Thank you very much.
You can not get this string in a dictionary, because it is not a dictionary , it A Structure of dictionaries
You can store it in NSARRA by using ObjectiveC ob Can get value Ekt are:
NSArray * objects = (NSArray *) [jsonString JSONValue]; After that, you can loop on those objects that are in the array: for (object in the animation * dyest) {NSString * id = (NSString *) [Dick Objectwork: @ "id"]; NSString * name = (NSString *) [dict objectForKey: @ "name"]; NSArray * Tag = (NSARRA *) [Dict Octoforkey: @ "Tag"]; // loop over tag here ... for (in the name of the NSDictionary * tag) {NSString * tag_id = (NSString *) [tag objectForKey: @ "id"]; NSString * tag_name = (NSString *) [Tag objectForKey: @ "Tag"]; } // ...}
Comments
Post a Comment