Skip to content

Commit a76d726

Browse files
committed
support BigInteger and BigDecimal
1 parent b39ccc2 commit a76d726

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

JSONObject.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,8 @@ public static Object wrap(Object object) {
16331633
|| object instanceof Short || object instanceof Integer
16341634
|| object instanceof Long || object instanceof Boolean
16351635
|| object instanceof Float || object instanceof Double
1636-
|| object instanceof String) {
1636+
|| object instanceof String || object instanceof BigInteger
1637+
|| object instanceof BigDecimal) {
16371638
return object;
16381639
}
16391640

0 commit comments

Comments
 (0)