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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -