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); }];  

this is getting a response

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

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -