Author: bfitzpat
Date: 2012-04-23 13:07:32 -0400 (Mon, 23 Apr 2012)
New Revision: 40413
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/utils/SOAPDOMParser.java
Log:
JBIDE-11577 - Fixing JSON pretty print in the WS tester to now handle collections
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/utils/SOAPDOMParser.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/utils/SOAPDOMParser.java 2012-04-23
16:55:39 UTC (rev 40412)
+++
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/utils/SOAPDOMParser.java 2012-04-23
17:07:32 UTC (rev 40413)
@@ -286,6 +286,15 @@
}
}
return output;
+ } else if (inJSON.startsWith("[") && inJSON.endsWith("]"))
{ //$NON-NLS-1$ //$NON-NLS-2$
+ String output = "[\r\n"; //$NON-NLS-1$
+ inJSON = inJSON.substring(1, inJSON.length() - 1);
+ String innerParts = prettyPrintJSON(inJSON);
+ output = output + innerParts;
+ output = output + "\r\n]"; //$NON-NLS-1$
+ return output;
}
return inJSON;
- }}
+ }
+
+}
Show replies by date