java.lang.NoSuchMethodError: No such DSL method 'readJSON'
And in my case it was just a stupid typo: readJson instead of readJSON.
Install the Pipeline Utility Steps
plugin.
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