I have a JSON object that I would like to map into two core data objects with a relationship between the two.
For example, if the JSON is:
{
"name" : "tom",
"company" : "ACME",
"phone" : "123-456-7890",
"email" : "[email protected]",
"height" : "60",
"weight" : "172"
}
I would like to parse the JSON object into a Person object that contains the "name" field. The person object would then have a relationship to a contactInfo object that contains the "email" and "phone" field, and another relationship to a bodyStats object that contains the "height" and weight "field". What is the best way to do this? I fairly proficient with normal RestKit mapping but this one has stumped me, can I achieve this with dynamic mapping? Do I have to use key validation and custom map objects?
Thanks for your help!