This commit is contained in:
Looly 2023-03-09 20:49:30 +08:00
parent 728957baa3
commit 8eb7352d14

View File

@ -0,0 +1,13 @@
package cn.hutool.json;
import org.junit.Assert;
import org.junit.Test;
public class Issue2953Test {
@Test
public void parseObjWithBigNumberTest() {
final String a = "{\"a\": 114793903847679990000000000000000000000}";
final JSONObject jsonObject = JSONUtil.parseObj(a, JSONConfig.of());
Assert.assertEquals("{\"a\":\"114793903847679990000000000000000000000\"}", jsonObject.toString());
}
}