Skip to content

Commit b56fe9f

Browse files
committed
Merge pull request stleary#118 from douglascrockford/fix-for-JSONML-toString-JSONArray
fix toString(JSONArray) to emit object.toString() values
2 parents 03807e2 + d6ba318 commit b56fe9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

JSONML.java

Lines changed: 2 additions & 0 deletions
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)