Dumping lists is not supported

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

XMLWordPrintable

      I want to dump to YAML a data structure that is a list of maps, but I only get:

      data parameter has invalid content (no-basic classes)

      That doesn't make sense to me, since SnakeYAML can do this just fine. Please remove this restriction. Sample code:

      def data = [
        [
          key_1: "value1",
          key_2: [
            "item_1",
            "item_2",
          ],
        ],
        [
          key_1: "value2",
          key_2: [
            "item_3",
            "item_4",
          ],
        ],
      ]
      def yaml = writeYaml(charset: 'UTF-8', data: data, returnText: true)

            Assignee:
            rsandell
            Reporter:
            Dirk Heinrichs
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: