Send JSON request with Restkit RKParams
问题 I need to send a JSON request to a REST service. I'm using Restkit RKParams to send a request. Currently it works as follows: [params setValue:@"-46.566393" forParam:@"checkin[lng]"]; [params setValue:@"-23.541576" forParam:@"checkin[lat]"]; Send: { "checkin": { "lng":"-26.566393", "lat":"-63.541576" } } Now I want to form JSON data like this (with few more items): { "checkin": { "lng":"-26.566393", "lat":"-63.541576", "votes": [ {"vote_id":28}, {"vote_id":11} ] } } How would I set the params