Skip to content

Commit 91c6f09

Browse files
author
John J. Aylward
committed
Modifies XML output to be handled the same for a native java array as well as a JSONArray.
1 parent e7f4eb5 commit 91c6f09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

XML.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,11 @@ public static String toString(Object object, String tagName)
406406
value = jo.opt(key);
407407
if (value == null) {
408408
value = "";
409+
}else if(value.getClass().isArray()){
410+
value = new JSONArray(value);
409411
}
410412
string = value instanceof String ? (String)value : null;
413+
411414

412415
// Emit content in body
413416

0 commit comments

Comments
 (0)