A json string containing an integer, serialized into an Object, how to avoid the integer into a decimal. Source code: String data = "[{"Id":1,"Type":"root","Key":"root"},{"Id":2,"Type":"root"},{"Id":3,"Type":"root"}]"; List<Object> dataList = gson.fromJson(data, new TypeToken<List<Object>>() {}.getType()); 