I created a custom class for contacts like
*c.h*
@interface Contact : NSObject
@property NSString *c_id;
@property NSString *c_name;
@property NSString *phn_no;
@property NSString *email_id;
-(id) initWithCid: (NSString*) cid andCname: (NSString*) cnm andCphn:(NSString*) ph andCmail: (NSString*) mail;
@end
I am storing them as array of dictionary to convert them to JSON
data using NSJSONSerialzation
I want to know if there is any way that if I am going to create a array of contact objects, how do I convert them to JSON
data??
Basically my question is how to serialize and deserialize array of objects to and from JSON
data.