Skip to content
mitochondrion edited this page Dec 12, 2016 · 4 revisions

##Response Conversion ###Object to JSON

import groovy.json.*
new JsonBuilder(object).toPrettyString()

###ChildNode to XML

import groovy.xml.XmlUtil
groovy.xml.XmlUtil.serialize(node).toString()

Clone this wiki locally