Hi,
I want to convert JSON Header into Groovy Script. I already try to write this script in my scriptrunner console :
import groovy.json.JsonSlurper
class Example { static void main(String[] args) {
def jsonSlurper = new JsonSlurper()
def object = jsonSlurper.parseText('{ "name": "John", "ID" : "1"}')
println(object.name);
println(object.ID); }
} but the result is "class Example" not name and ID.

Is there any workaround for this? Thanks.