Skip to content
Snippets Groups Projects
Commit 350e432a authored by cramakri's avatar cramakri
Browse files

MINOR : Cache the properties dictionary computed from the JSON stored in the DB

SVN: 28111
parent ed3c2625
No related branches found
No related tags found
No related merge requests found
...@@ -121,9 +121,10 @@ id ObjectFromJsonData(NSString *jsonDataString, NSError **error) ...@@ -121,9 +121,10 @@ id ObjectFromJsonData(NSString *jsonDataString, NSError **error)
if ([properties isKindOfClass: [NSDictionary class]]) if ([properties isKindOfClass: [NSDictionary class]])
properties = [self propertiesArrayFromDictionaryOrError: &error]; properties = [self propertiesArrayFromDictionaryOrError: &error];
#endif #endif
if (error) { if (error) {
NSLog(@"Could not deserialize properties %@", error); NSLog(@"Could not deserialize properties %@", error);
} else {
[self setPrimitiveValue: properties forKey: @"properties"];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment