My JSON looks like this:
[ [value1, value2, value3], [value1, value2, value3]]
I want to iterate over the external array, and map each internal array to an object such as:
@interface MyObject : NSObject
@property (nonatomic, copy) NSString* key1;
@property (nonatomic, copy) NSString* key2;
@property (nonatomic, copy) NSString* key3;
@end
For the sample JSON, I should get two mapped objects, e.g. MyObject1, MyObject2, where MyObject1 is mapped to the first internal array, and MyObject2 is mapped to the second internal array. Each having their properties mapped to corresponding values in the array i.e. key1 == value1, key2==value2 and key3==value3.
Any ideas hot to do such a mapping?
Array1,Array2, etc. containing 3 strings every time? - Gil Sand