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:
parent
a1fcffecb2
commit
12b75c4acc
2 changed files with 17 additions and 23 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue