I have json object with arbitary values inside. And I want to deserialize it in a Map. Everything is ok except converting integers to a doubles. See example:
{"id":1, "inner_obj":{"key":"value","num":666,"map":{"key":"value"}}}
deserializes to this(map.toString()):
{id=1.0, inner_obj={key=value, num=666.0, map={key=value}}}
Is there some easy way to deserialize "id" and "num" as Integers and not as Doubles?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…