java.lang.NoSuchMethodError: No such DSL method 'readJSON' java.lang.NoSuchMethodError: No such DSL method 'readJSON' jenkins jenkins

java.lang.NoSuchMethodError: No such DSL method 'readJSON'


Using Pipeline Utility Steps Plugin you can use the readJSON function.

def props = readJSON text: '{ "key": "value" }'

You can not use this function without this plugin.

For more info check: Steps


And in my case it was just a stupid typo: readJson instead of readJSON.