我正在解析一个 JSON 字符串:
Response: {"success":false,"displaymessage":"UserName or Email already exist. Please try again"}
我正在使用的代码是:
NSLog(@"Result: %@ %@", [responseObject valueForKeyPath:@"success"]? @"YES" : @"NO", [responseObject valueForKeyPath:@"displaymessage"]);
但是我的输出是:
Result: YES UserName or Email already exist. Please try again
我应该得到一个不。我做错了什么?