iphone - Going from JSON to NSArray -


I am using JSON framework found here: In my iPhone app, I try to parse some data in NSARR

I get the JSON string properly from the server and it looks like this:

  {"user" : ["Example1@examle.com", "example2@example.com", "example3@example.com"]}   

I would like to end with an NSArray so that: < / P>

  myArray [0] == "example1@example.com" myArr Ay [1] == "example2@example.com" myArray [3] == "example3@example.com"   

It should be really easy, but this is the closest to me This is output:

("example1@example.com", "example2@example.com", "example3@example.com") < P> From this code

  NSDictionary * Dictionary = [jsonString JSONValue]; Dictionary (NSString * key) {dictionary value for "NSLog (@"% @ "\"% @ \ "", key, [dictionaryfourfork: key]);}   

Any help would be appreciated!

  NSArray * myArray = [dictionary objectForKey: @ "User"];    

Comments