xcode - How to send recursive json request with nsmutableurlrequest in ios? -
xcode - How to send recursive json request with nsmutableurlrequest in ios? - in ios create this "{ "email":string, "password":string }" json request body, passing nsdata create string email=myname@domain.com&password=mypassword to sethttpbody method of nsmutableurlrequest.this works fine im ok this. but if want create this "{ "post": { "title":string, "room_id":int, "content":string, } }" json request body? tried create string combinations solve recursion didnt work out really. checked methods of nsmutableurlrequest couldnt find related solve this. edit: this creates post should fine, need equivalent string email=myname@domain.com&password=mypassword recursive case. when send info should not work. when send string provided works. nsstring *usertoken = [appdelegate token]; nsstring *posttopic = @"111testtopic"; n...