Closed lucianocn closed 9 years ago
Yes the framework assumes your server uses snake_case so you need to provide the necessary mapping:
+ (NSDictionary *)JSONInboundMappingDictionary {
return @{
@"id": @"id",
@"name": @"name",
@"waitingTime": @"waitingTime"
};
}
@matthewcheok Its working! Thanks for the fast response!
JSON:
Model.h:
If I comment the
waitingTime
property, REALM is importing the jSON without error. But if not, the app crashs.Success Output:
Crash (with waitingTime uncommented):
Can it be happen due the capital letters in the middle of the property name? (waitingTime)