I’ve just started using RestKit. Given the JSON structure below, how do I configure an object mapping for key 1 and key 2? I’ve successfully set up the object mapping for key 3.
{
"key 1": "value",
"key 2": "value",
"key 3": [
{
"key": "value"
"key": "value"
},
{
"key": "value"
"key": "value"
},
]
}
Thanks in advance.
To successfully use the RestKit object mapping without KVC you’ll need to use two mappings – one inner mapping for the “key 3” and one outer mapping for “key 1” and “key 2”.
You then define a relationship for the “key 3” key path. See another question for details.