My api prints a simple json object like this:
{"status":1}
How to say that retrofit (v2) pass it to gson and return an JSONObject contains this key-value pair in response?
I tried following:
Call<JSONObject> result();
But when prints response.body()
in onResponse (Response<JSONObject> response)
method, it returns {}
which means it's empty.