Iterate over data container, convert to slist #5276
Answered
by
nickanderson
olehermanse
asked this question in
Q&A
-
I'd like to iterate over a JSON structure, extracting each value for key
How can I do the above without using a classic array? |
Beta Was this translation helpful? Give feedback.
Answered by
nickanderson
Jun 19, 2023
Replies: 1 comment 1 reply
-
I was able to accomplish this without using classic associative arrays using https://docs.cfengine.com/docs/3.21/reference-functions-maparray.html
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
olehermanse
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was able to accomplish this without using classic associative arrays using
maparray()
.https://docs.cfengine.com/docs/3.21/reference-functions-maparray.html