티스토리 뷰

728x90
String.valueOf((int) Double.parseDouble(t))

https://stackoverflow.com/questions/45734769/why-does-gson-parse-an-integer-as-a-double

 

Why does Gson parse an Integer as a Double?

A complex json string and I want to convert it to map, I have a problem. Please look at this simple test: public class Test { @SuppressWarnings("serial") public static void main(String[]...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

Marshalling  (0) 2020.06.07
[Java] Gson TypeToken with dynamic ArrayList  (0) 2020.06.07
[Java] Gson not call constructor  (0) 2020.06.07
[Java] Jackson ignore null `JSONInclude(Include.NON_EMPTY)`  (0) 2020.06.07
[SQL] not exists  (0) 2020.06.07
댓글