Open ordinaryman09 opened 8 years ago
Hey. You can use static jsonPreprocessing:
method and merge those fields before persisting the object
Thank you. I check your code a little bit more and I noticed the selector you're looking for is preprocessedJSON not jsonPreprocessing. Also, I think it might be helpful for others if you update the ReadMe
+ (NSDictionary *)preprocessedJSON:(NSDictionary *)dictionary {
NSMutableDictionary *dict = [[NSMutableDictionary alloc] initWithDictionary:dictionary];
dict[@"releaseCount"] = @(0);
return dict.copy;
}
Yes, sorry, the method is called preprocessedJSON:
. PR is already made #93
No worries. great work! Thanks brother.
hello,
is there any way to merge two field into one? for example, if the dictionary contains the following: { street 1 : "xxx", street 2 : "yyy" }
I want merge it to just "street" property.
thanks!