Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3257

How can I append values from array of dicts (data) to slist

    XMLWordPrintable

    Details

      Description

      How can I append values from array of dicts (data) to slist?

      I have a parse JSON response, in the form:

      [
          {
              "somestuff": "value",
              "name": "mender"
          },
          {
              "somestuff": "someothervalue",
              "name": "mender-artifact"
          }
      ]
      

      I can retrieve the indexes, and get the name-values iteratively. However, I want to collect them into a list. I've had a look at the collection functionality. But not been able to figure it out.

        Attachments

          Activity

            People

            Assignee:
            a10042 Nick Anderson
            Reporter:
            oleorhagen Ole Petter Orhagen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: