Note that there are some explanatory texts on larger screens.

plurals
  1. POStore App names in NSArray from JSON DATA which Stored in NSDictionary
    text
    copied!<p>I have retrive following response form Server in <code>JSON</code> format which I have sucessfully store in <code>NSDictionary</code>.</p> <pre><code>{ "@companyName" = "MobileAPPSDeveloper"; "@generatedDate" = "8/6/13 2:41 AM"; "@version" = "1.0"; application = ( { "@apiKey" = 234FXPQB36GHFF2334H; "@createdDate" = "2013-03-01"; "@name" = FirstApp; "@platform" = iPhone; }, { "@apiKey" = 3PF9WDY234546234M3Z; "@createdDate" = "2013-02-01"; "@name" = SecondAPP; "@platform" = iPhone; }, { "@apiKey" = NXGQXM2347Y23234Q4; "@createdDate" = "2013-05-22"; "@name" = ThirdApp; "@platform" = Android; } ); } </code></pre> <p>This is method I have used.</p> <pre><code>- (void)connectionDidFinishLoading:(NSURLConnection *)connection { NSString *responseString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding]; [self convertDataIntoDictionary:responseData]; } -(void)convertDataIntoDictionary:(NSData*)data{ NSDictionary *dictionary; if (data.length&gt;0) { NSError *parsingDataError; dictionary = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&amp;parsingDataError]; if (parsingDataError) { // [ErrorAlert showError:parsingDataError]; NSString *recievedString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; NSLog(@"Data Conversion Error When Parsing: %@", recievedString); } } NSLog(@"Data back from server\n %@",dictionary); NSArray *applicationDetails = dictionary[@"application"]; } </code></pre> <p>I can not go further then this?</p> <p>I would like to get All NAME of APPS in Array.</p> <p>Any help would be appreciate.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload