import groovy.json.*
def json = new JsonBuilder()
json {
AboutMe {
"@grimrose" {
favorite {
lang "Groovy"
ide "IntelliJ IDEA"
}
community {
name "Yokohama.groovy"
tag "#yokohamagroovy"
}
}
}
}
def pretty = json.toPrettyString()
println StringEscapeUtils.unescapeJava(pretty)
Copyright ©grimrose