Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. {"MatchedResult":{"CurrentStatus":47}}
  2.  
  3. NSString *responseString = [request responseString];
  4. NSDictionary *responseDict = [responseString JSONValue];
  5. NSString *currentStatus = [responseDict objectForKey:@"CurrentStatus"];
  6.  
  7. NSString *responseString = [request responseString];
  8. NSDictionary *responseDict = [responseString JSONValue];
  9. NSString *currentStatus = [responseDict objectForKey:@"MatchedResult"];
  10.  
  11. {
  12. CurrentStatus = 47;
  13. }
  14.  
  15. NSString *responseString = [request responseString];
  16. NSDictionary *responseDict = [responseString JSONValue];
  17. NSString *currentStatus = responseDict[@"MatchedResult"][@"CurrentStatus"];
  18.  
  19. NSDictionary *matchedResultDict = [responseDict objectForKey:@"MatchedResult"];
  20. NSString *currentStatus = [matchedResultDict objectForKey:@"CurrentStatus"];
  21.  
  22. {
  23. "MatchedResult": {
  24. "CurrentStatus": 47
  25. }
  26. }
  27.  
  28. NSString *responseString = [request responseString];
  29. NSDictionary *responseDict = [responseString JSONValue];
  30. NSString *currentStatus = [[responseDict objectForKey:@"MatchedResult"] objectForKey:@"CurrentStatus"];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement