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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -