Need to do deep JSON conversion? Use this:
JSON.use("deep") {
def converter = results as JSON
converter.prettyPrint = true
render converter.toString()
}
If you get the Misplaced key -error, add the following line to Config.groovy:
grails.converters.json.circular.reference.behaviour = "INSERT_NULL"
Ei kommentteja:
Lähetä kommentti