As the title says, does JSONModel arrayOfModelsFromDictionaries returns null, it works fine on the simulator, but not on the device. My JSON has the following structure:
[{"data1":"a","data2":"b"},{"data1":"a","data2":"b"}]
I have two JSONModel subclasses one called Restaurant & RestaurantFeed (Like in the Kivafeed example, in order to use the convertOnDemand feature (Which doesn't work either, maybe because of the direct initialization when using arrayOfModelsFromDictionaries ) and I receive the data like so
[JSONHTTPClient getJSONFromURLWithString:URL
params:nil
completion:^(id json, JSONModelError *err) {
NSArray *arrays = [Restaurant arrayOfModelsFromDictionaries:json];
NSLog(@"%@ %@", self.feed, err);
self.feed.restaurants = arrays;
[self.restaurantsTableView reloadData];
}];
How can I fix this?