Your resultInside
class is adding an extra object layer that does not exist in your JSON. Try moving the map to your Data
class results
field.
public class Data {
@SerializedName("results")
@Expose
private Map<String, Vitals> result;
//....
}
More Related Contents:
- How to handle Dynamic JSON in Retrofit?
- Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
- Retrofit 2: Get JSON from Response body
- Retrofit2.0 gets MalformedJsonException while the json seems correct?
- How to parse JSON array without any object in Retrofit?
- How to get response as String using retrofit without using GSON or any other library in android [duplicate]
- Getting Header from Response (Retrofit / OkHttp Client)
- How can Retrofit 2.0 parse nested JSON object?
- MalformedJsonException with Retrofit API?
- How to handle parameters that can be an ARRAY or OBJECT in Retrofit on Android?
- JSON parsing in android
- Android-change cardview background color parsing json
- JSONException: Value of type java.lang.String cannot be converted to JSONObject
- Get nested JSON object with GSON using retrofit
- Refreshing OAuth token using Retrofit without modifying all calls
- Android- create JSON Array and JSON Object
- Retrofit 2 – Dynamic URL
- Retrofit Expected BEGIN_OBJECT but was BEGIN_ARRAY
- org.json.JSON Exception : End of input at character 0
- Get JSONArray without array name?
- Retrofit – Multipart request: Required MultipartFile parameter ‘file’ is not present
- org.json.JSONObject cannot be converted to JSONArray in android
- How can I add an image file into json object?
- Get response status code using Retrofit 2.0 and RxJava
- Does Retrofit make network calls on main thread?
- Retrofit – Change BaseUrl
- how to run java and xml code (fetched from api) into another fragment
- java.lang.BootstrapMethodError: Exception from call site #4 bootstrap method ,when initializing Retrofit
- Retrofit – throwing an exception java.lang.IllegalArgumentException: Only one encoding annotation is allowed
- Parsing dynamic JSON in Android