mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
support BigInteger and BigDecimal
This commit is contained in:
parent
b39ccc2a67
commit
a76d7262d1
1 changed files with 2 additions and 1 deletions
|
@ -1633,7 +1633,8 @@ public class JSONObject {
|
||||||
|| object instanceof Short || object instanceof Integer
|
|| object instanceof Short || object instanceof Integer
|
||||||
|| object instanceof Long || object instanceof Boolean
|
|| object instanceof Long || object instanceof Boolean
|
||||||
|| object instanceof Float || object instanceof Double
|
|| object instanceof Float || object instanceof Double
|
||||||
|| object instanceof String) {
|
|| object instanceof String || object instanceof BigInteger
|
||||||
|
|| object instanceof BigDecimal) {
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue