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

XML.toString(array)

This commit is contained in:
Douglas Crockford 2011-01-13 18:33:56 -08:00
parent a1fcffecb2
commit 12b75c4acc
2 changed files with 17 additions and 23 deletions

View file

@ -465,6 +465,7 @@ public class Test extends TestCase {
int ar[] = {1, 2, 3};
JSONArray ja = new JSONArray(ar);
assertEquals("[1,2,3]", ja.toString());
assertEquals("<array>1</array><array>2</array><array>3</array>", XML.toString(ar));
String sa[] = {"aString", "aNumber", "aBoolean"};
jsonobject = new JSONObject(beanie, sa);