Skip to content

Commit d6ba318

Browse files
committed
fix toString(JSONArray) to emit object.toString() values
1 parent 9b6872b commit d6ba318

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

JSONML.java

+2
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ public static String toString(JSONArray ja) throws JSONException {
373373
sb.append(toString((JSONObject)object));
374374
} else if (object instanceof JSONArray) {
375375
sb.append(toString((JSONArray)object));
376+
} else {
377+
sb.append(object.toString());
376378
}
377379
}
378380
} while (i < length);

0 commit comments

Comments
 (0)