|
|
@@ -168,9 +168,12 @@ NSInteger const APPLocalNotificationTypeTriggered = 2;
|
|
|
|
|
|
[obj removeObjectForKey:@"updatedAt"];
|
|
|
|
|
|
+ if (obj == NULL || obj.count == 0)
|
|
|
+ return json;
|
|
|
+
|
|
|
data = [NSJSONSerialization dataWithJSONObject:obj
|
|
|
options:NSJSONWritingPrettyPrinted
|
|
|
- error:Nil];
|
|
|
+ error:NULL];
|
|
|
|
|
|
json = [[NSString alloc] initWithData:data
|
|
|
encoding:NSUTF8StringEncoding];
|