From 7851e9b2e8cd934e8b6071532664fb096ec65e20 Mon Sep 17 00:00:00 2001 From: "John J. Aylward" Date: Mon, 15 Aug 2016 10:24:38 -0400 Subject: [PATCH] revert back changes to Number support --- JSONObject.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/JSONObject.java b/JSONObject.java index de42faa..c722ea6 100644 --- a/JSONObject.java +++ b/JSONObject.java @@ -1733,9 +1733,12 @@ public class JSONObject { } if (object instanceof JSONObject || object instanceof JSONArray || NULL.equals(object) || object instanceof JSONString - || object instanceof Number || object instanceof Character - || object instanceof Boolean || object instanceof String - || object instanceof Enum) { + || object instanceof Byte || object instanceof Character + || object instanceof Short || object instanceof Integer + || object instanceof Long || object instanceof Boolean + || object instanceof Float || object instanceof Double + || object instanceof String || object instanceof BigInteger + || object instanceof BigDecimal || object instanceof Enum) { return object; }