Quantcast
Channel: How to get a raw Retrofit response string? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Salem for How to get a raw Retrofit response string?

Try to use body().string() instead of body().toString()

View Article


Answer by maciekjanusz for How to get a raw Retrofit response string?

Use Call<JSONObject>. That way you don't even need to include any of retrofit converters in your project.

View Article


How to get a raw Retrofit response string?

I am working on Retrofit, but I am stuck on one thing: how do I get the raw JSON on the response body. public interface ViewMenuItems { @GET Call<ResponseBody> listRepos(@Url String url); }...

View Article
Browsing all 3 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>