diff --git a/Pod/Classes/PNObject.m b/Pod/Classes/PNObject.m index 9fc1b29..00d7ddb 100644 --- a/Pod/Classes/PNObject.m +++ b/Pod/Classes/PNObject.m @@ -207,6 +207,10 @@ NSString * const PNObjectMappingSelector = @"selector"; NSString *mappedJSONKey; NSString *mappedJSONType; + if (self.JSON && [[self.JSON allKeys] count] == 0) { + self.JSON = [[NSMutableDictionary alloc] initWithDictionary:[self reverseMapping]]; + } + NSDictionary *properties = [PNObject propertiesForClass:self.class]; for (NSString* propertyName in self.JSONObjectMap) {