I am trying to parse JSON from server. I have Pojo Model but the server JSON is sending boolean as True, False instead of true,false. Is it possible to map this using custom GSONbuilder etc.
Here is my class
public class User {
private String id;
private String name;
private boolean isOnline;
}
Here is my JSON from server
{
"user": {
"id": 1,
"name": "Abc",
"isOnline": True
}
}
User user = new Gson().fromJSON(json,User.class);