How to convert below in Java variable, so i can access it the below response
{
"Response": {
"ResponseVal": true,
"Reason": null
}
}
I define like this
public class PoliceFineDetailsList {
@SerializedName("Response")
private Object Response;
public Object getResponse() {
return Response;
}
public void setResponse(Object response) {
Response = response;
}
}
System.out.println(response.body().getResponse());
But how to access ResponseVal
?