我有这段代码:
[self.vManager playersNearLocation:userLocation
block:^(NSSet *players, NSError *error)
{
if(players && [players count])
{
NSLog(@"Success in getting players");
/* TO DO
Convert JSON to Objective C object here
*/
}else{
NSLog(@"Failed to get players");
}
}];
我从服务器接收 JSON,如何将其转换为 Dictionary 或数组对象。我不想使用任何外部库,有本地方式吗?
谢谢