Flaviu's Blog - Read'n'Code

iOS: Nested JSON POST With RestKit

Say you want to send some JSON from your RestKit enabled iOS app. You want your JSON to look like this:

First, make the corresponding NSDictionary structure:

Then, create the JSON string from your NSDictionary

Finally, make the request and map the response to a model:

Hope this helps.

Comments

Fork Flaviu on GitHub