This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      Currently, you cannot output arrays or lists as JSON in pipeline scripts by default. This is because - unlike almost all other overloads of JsonOutput.toJson - JsonOutput.toJson(Object) is not on the generic whitelist.

      If this method is somehow problematic from a security POV, feel free to explain and close this issue, but I cannot see any reason to disallow this overload. According to the JavaDoc, this is what it does:

      Returns:
      "null" for a null value, or a JSON array representation for a collection, array, iterator or enumeration, or representation for other object.

            Assignee:
            Unassigned
            Reporter:
            Moritz Baumann
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: