From 91c6f09be82b81f5a6d553f83b711d4cdba42ec5 Mon Sep 17 00:00:00 2001 From: "John J. Aylward" Date: Mon, 26 Oct 2015 18:17:37 -0400 Subject: [PATCH] Modifies XML output to be handled the same for a native java array as well as a JSONArray. --- XML.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/XML.java b/XML.java index 23a9919..a55223c 100755 --- a/XML.java +++ b/XML.java @@ -406,8 +406,11 @@ public class XML { value = jo.opt(key); if (value == null) { value = ""; + }else if(value.getClass().isArray()){ + value = new JSONArray(value); } string = value instanceof String ? (String)value : null; + // Emit content in body