Skip to content

Commit 474f285

Browse files
committed
Merge branch 'big-numbers' of https://github.com/douglascrockford/JSON-Java into local-big-numbers
2 parents 6ab6f06 + a76d726 commit 474f285

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)