ios - JSON text did not start with array Error with AFNetworking -
I am using the code below to request the GET. Reverse sending the parameters to the server and collecting the data is fine in the server. But the error * JSON text is not being started from the Orem
FHttrivAffest Operation Manager * Manager = [FHTPTPAST Operation Manager Manager]; @ "Datename", @ "dateofBirth": dob1, @ "country": count}; [Manager GET: @ "http://37.187.152.236:91/EmployeeSvc.svc/AddEmployee?" Parameters: Parameters Success: ^ (F.httpuquest operation * operation, id response object) {nslog (@ "jessonon:% @", feedback object); } Failure: ^ (FHTPPKAESTA Operation * Operation, NSERR * error) {NSLog (@ "error:% @", error); }];
You can check your service content type, if text is / html, then you need this code:
Manager.responseSerializer.acceptableContentTypes = [NSSet set with object: @ "text / html"];
Comments
Post a Comment