ios - JSON format issue in PHP REST service receiving POST from AFNetworking 2.0 -
i have situation post json string ios code using afnetworking 2.0 code. client code looks this: nsurl *url = [nsurl urlwithstring:baseurlstring]; nsstring *jsonstring = [[nsstring alloc] initwithdata:jsonpayloadforproject encoding:nsutf8stringencoding]; nsdictionary *parameters = @{@"project": jsonstring}; afhttpsessionmanager *manager = [[afhttpsessionmanager alloc] initwithbaseurl:url]; manager.requestserializer = [afjsonrequestserializer serializer]; manager.responseserializer.acceptablecontenttypes = [nsset setwithobject:@"text/html"]; [manager post:@"service.php" parameters:parameters success:^(nsurlsessiondatatask *task, id responseobject) { nslog(@"%@", [responseobject description]); } failure:^(nsurlsessiondatatask *task, nserror *error) { uialertview *alertview = [[uialertview alloc] initwithtitle:@"post json project error" message:[error localizedde