groovy string to json

www.lau‮moc.irutt‬
groovy string to json
def output = new groovy.json.JsonOutput()
def testString = "test hello"

println output.toJson(testString)
Created Time:2017-09-07 23:19:42  Author:lautturi