1. Java中String轉JSONOBJECT,數字精度丟失
復制的你的代碼,運行結果如下:
如果實在不行,你把JSONObject.fromObject(xml);換成JSONObject.fromString(xml);試試。