You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some of libraries e.g. Gson, Moshi, will help us parse json string into java object.
If public void call(Object... args) { could return the java object instead of JSONObject, I think it will be more convenient.
For example, in Retrofit, we could define the response java object, after response returned, it will call converters to help parsing the response string into java object, then we could use them directly instead of get the value one by one from JSONObject.
Encoder could also use Gson/Moshi to convert java object into json string automatically and send it.
engineers-bojan, skyrylyuk, asapha, coryroy, dreo and 4 more