Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to convert "a b c" string to json ["a","b","c"]? #381

Open
apiwoni opened this issue Aug 15, 2023 · 1 comment
Open

How to convert "a b c" string to json ["a","b","c"]? #381

apiwoni opened this issue Aug 15, 2023 · 1 comment

Comments

@apiwoni
Copy link

apiwoni commented Aug 15, 2023

I have been looking into sprig library functions since it is used by Argo Workflows and I am at a loss how to convert simple space-delimited string to JSON array of strings with Sprig library!?

@kirides
Copy link

kirides commented Sep 19, 2023

What do you want to do?
This seems like a job for

{{ splitList " " .AbcValues | toRawJson}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants