Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57940

readJSON from pipeline-utility-steps-plugin swallows keys named 'class'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None

      The readJSON step does not return any key named 'class'

      For example:

      input = '{"class":"example","other":"value"}'
      echo "${input}"
      output = readJSON text: input
      echo "${output}"
      

      Returns:

      [Pipeline] Start of Pipeline
      [Pipeline] echo
      {"class":"example","other":"value"}
      [Pipeline] readJSON
      [Pipeline] echo
      [other:value]
      [Pipeline] End of Pipeline
      

      Is this a reserved keyword? 

            rsandell rsandell
            idriver Ian Driver
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: