Closed ghost closed 7 years ago
The library uses Gson to format JSON content properly. Maybe your body's Content-Type
isn't set to application/json
?
Thanks aurae. Yes, Issue at the server side. and default it is set to the text/html. now we changed the Content-Type and now it works like a charm :). big thanks to you :)
JSON should be pretty print. please add this line String prettyJson = new JSONObject(bodyString).toString(2) bodyText.setText(prettyJson)