def output = new groovy.json.JsonOutput() def testString = "test hello" println output.toJson(testString)