NSString *url = @"{\"LinkResult\":{\"0\":{\"Name\":\"Veeva - Devon1\",\"ButtonDisplay\":\"Veeva\",\"PasswordSaving\":\"Yes\",\"Status\":\"Success\",\"Message\":\"No Error\", \"Identifiers\": {\"Identifier1Name\": \"Identifier1value\",\"Identifier2Name\": \"Identifier2value\",\"Identifier3Name\": \"Identifier3value\"},}}}";
NSData* jsonData = [url dataUsingEncoding:NSUTF8StringEncoding];
NSError *error;
NSDictionary *json = [NSJSONSerialization JSONObjectWithData:jsonData options:kNilOptions error:&error];
NSLog(@"json is %@", json);
NSDictionary *LinkResult = [json valueForKey:@"LinkResult"];
NSLog(@"LinkResult is %@", LinkResult);
for (id key in [LinkResult allKeys]) {
NSLog(@"Value for 0 index is %@", [LinkResult valueForKey:key]);
NSLog(@"ButtonDisplay is %@", [[LinkResult valueForKey:key] valueForKey:@"ButtonDisplay"]);
NSLog(@"Message is %@", [[LinkResult valueForKey:key] valueForKey:@"Message"]);
NSLog(@"Name is %@", [[LinkResult valueForKey:key] valueForKey:@"Name"]);
NSLog(@"PasswordSaving is %@", [[LinkResult valueForKey:key] valueForKey:@"PasswordSaving"]);
NSLog(@"Status is %@", [[LinkResult valueForKey:key] valueForKey:@"Status"]);
}