NSData+Json
@implementation NSData (Json) - (id)jsonObject { NSError *error; id object = [NSJSONSerialization JSONObjectWithData:self options:0 error:&error]; if (error) { DLog(@"Failed to serialize json"); return nil; } return object; } @end
@implementation NSData (Json) - (id)jsonObject { NSError *error; id object = [NSJSONSerialization JSONObjectWithData:self options:0 error:&error]; if (error) { DLog(@"Failed to serialize json"); return nil; } return object; } @end