Android, Problems Parsing Json Returned By A 422 Response
My web server responds with a 422 unprocessable entity error and renders a json response with a list of the errors e.g. {'name':['has already been taken']} For some reason though
Solution 1:
Well i think that you need to specify a header like this:
HttpPosthttppost=newHttpPost(url);
httppost.setHeader("Accept", "application/json");
httppost.setHeader("Content-type", "application/json");
Post a Comment for "Android, Problems Parsing Json Returned By A 422 Response"