json - How to map JSONArray to Model using MJExtension -


i got jsonobject this:

{     "id":123,     "coordinate": [         116.414503,         39.945575     ], } 

i have defined coordinate model:

//coordinate.h   @property (nonatomic, assign) float lng;  @property (nonatomic, assign) float lat; 

and target model:

//target.h @property (nonatomic, assign) int id;  @property (nonatomic, strong) coordinate *coordinate; 

question how corresponding target class?

thanks!


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -