title: java.lang.NoSuchMethodError: No such DSL method 'readJSON'
body: <pre><code>def data = readJSON text: '{"rel" : {"configVersion": "1.0","manifest" :"'+"${manifestURL}"+'"}}'
  writeJSON(file: 'C:\\Users\\Public\\json\\config.json', json: data)
  </code></pre>
  
  <p>I am using JSON function in my Jenkins pipeline and getting <code>NoSuchMethodFoundError</code>. I am using Jenkins 2.85.</p>
  
  <p>Any idea how to resolve this issue?</p>
  
  <pre><code>java.lang.NoSuchMethodError: No such DSL method 'readJSON' found among steps 
  [archive, bat, build, catchError, checkout, deleteDir, dir, 
  dockerFingerprintFrom, dockerFingerprintRun, echo, emailext, 
  emailextrecipients, envVarsForTool, error, fileExists, getContext, git, 
  input, isUnix, library, libraryResource, load, mail, milestone, node, 
  parallel, powershell, properties, pwd, readFile, readTrusted, resolveScm, 
  retry, script, sh, sleep, stage, stash, step, svn, timeout, timestamps, tm, 
  tool, unarchive, unstash, validateDeclarativePipeline, waitUntil, 
  withContext, withCredentials, withDockerContainer, withDockerRegistry, 
  withDockerServer, withEnv, wrap, writeFile, ws] or symbols [all, allOf, 
  always, ant, antFromApache, antOutcome, antTarget, any, anyOf, apiToken, 
  architecture, archiveArtifacts, artifactManager, authorizationMatrix, 
  batchFile, booleanParam, branch, buildButton, buildDiscarder, 
  caseInsensitive, caseSensitive, certificate, changelog, changeset, choice, 
  choiceParam, cleanWs, clock, cloud, command, credentials, cron, crumb, 
  defaultView, demand, disableConcurrentBuilds, docker, dockerCert, 
  dockerfile, downloadSettings, downstream, dumb, envVars, environment, 
  expression, file, fileParam, filePath, fingerprint, frameOptions, freeStyle, 
  freeStyleJob, fromScm, fromSource, git, github, githubPush, gradle, 
  headRegexFilter, headWildcardFilter, hyperlink, hyperlinkToModels, 
  inheriting, inheritingGlobal, installSource, jdk, jdkInstaller, jgit, 
  jgitapache, jnlp, jobName, junit, label, lastDuration, lastFailure, 
  lastGrantedAuthorities, lastStable, lastSuccess, legacy, legacySCM, list, 
  local, location, logRotator, loggedInUsersCanDoAnything, masterBuild, maven, 
  maven3Mojos, mavenErrors, mavenMojos, mavenWarnings, modernSCM, myView, 
  node, nodeProperties, nonInheriting, 
  </code></pre>