Hi,everyone.When Everyone in the development is how to return JSON data server converts the object model?Or use some open-source framework?Give me some good advice.
For example,server gave me such data:
’mark =1‘ indicates that the request server success,now,I will use a model to save the data.My code as shown in the following picture.
So I changed how to use this 'MOdel' it.Thanks
For example,server gave me such data:
’mark =1‘ indicates that the request server success,now,I will use a model to save the data.My code as shown in the following picture.
So I changed how to use this 'MOdel' it.Thanks
![](http://img.bbs.csdn.net/upload/201508/27/1440676984_922275.png)
#import <Foundation/Foundation.h>
@interface ClictMode : NSObject
@property (strong, nonatomic) NSString *address;
@property (strong, nonatomic) NSString *aggregatescore;
@property (strong, nonatomic) NSString *bankcard;
@property (strong, nonatomic) NSString *birthday;
@property (strong, nonatomic) NSString *cantel;
@property (assign, nonatomic) int code;
@property (strong, nonatomic) NSString *company;
@property (assign, nonatomic) int distance;
@property (assign, nonatomic) int userID;
@property (strong, nonatomic) NSString *userName;
@property (strong, nonatomic) NSString *password;
@property (strong, nonatomic) NSString *sex;
@property (strong, nonatomic) NSString *store;
@property (strong, nonatomic) NSString *tel;
@property (strong, nonatomic) NSString *type;
@property (strong, nonatomic) NSString *userlevel;
@end
#import "ClictMode.h"
@implementation ClictMode
@synthesize address,aggregatescore,bankcard,birthday,cantel,code,company,distance,userID,userName,password,sex,store,tel,type,userlevel;
@end