expressions: json to raw #13017
Unanswered
static-moonlight
asked this question in
Q&A
Replies: 1 comment
-
This Argo expression: '{{=join(jsonpath(inputs.parameters.message, "$.data.files[*].name"), "\n")}}' Outputs: path/to/file1
path/to/file2 See Workflow Variables for more info: https://argo-workflows.readthedocs.io/en/latest/variables/#expression |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a workflow that is being triggered by a message. This is a simplified version of it:
What I need is a flat list of the files names (no json structure):
Currently, I am extracting that list with
jq
in an extra workflow step:I was playing around with Argo's expressions but couldn't get the desired result. I tried using
jsonpath
andmap
and alsosprig
function. The closed I got was a json array of the files names. Is there any way to do that with Argo's expressions?Beta Was this translation helpful? Give feedback.
All reactions