1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

fix toString(JSONArray) to emit object.toString() values

This commit is contained in:
stleary 2015-04-19 17:53:40 -05:00
parent 9b6872b6e5
commit d6ba31819c

View file

@ -373,6 +373,8 @@ public class JSONML {
sb.append(toString((JSONObject)object)); sb.append(toString((JSONObject)object));
} else if (object instanceof JSONArray) { } else if (object instanceof JSONArray) {
sb.append(toString((JSONArray)object)); sb.append(toString((JSONArray)object));
} else {
sb.append(object.toString());
} }
} }
} while (i < length); } while (i < length);