Why does Gson convert any integer to 0 when using fromJson?
This is the POJO: public class MyPojo { String id; double myNumber; } This is my JSON: { "id": "id1", "my_number": 10.0 } This is my conversion code: // from is the JSON String from Above Map<String, Object> myData =…