JSON to Object in iOS with objective-c -
i have object
@interface hourly (coredataproperties) @property (nullable, nonatomic, retain) nsdate *dt; @property (nullable, nonatomic, retain) nsnumber *temp; @property (nullable, nonatomic, retain) nsnumber *temp_min; @property (nullable, nonatomic, retain) nsnumber *temp_max; @property (nullable, nonatomic, retain) nsnumber *humidity; @property (nullable, nonatomic, retain) nsnumber *pressure; @property (nullable, nonatomic, retain) nsstring *main; @property (nullable, nonatomic, retain) nsstring *des; @property (nullable, nonatomic, retain) nsstring *icon; @end and url
http://api.openweathermap.org/data/2.5/forecast/dayly?lat=35&lon=139&cnt=2 i can' add json object jsonmodel pod because weather in list array .
@ngọc thái: don't understand question. but, if want parse json (contain array of objects) object.
simple, can try it: https://github.com/elado/jastor#arrays
hope help!
Comments
Post a Comment