Skip to content

Appending to template toJson #546

Answered by maraino
LecrisUT asked this question in Q&A
Apr 17, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

The line that you have should work if .Token.preferred_username is a string.

If you want to use just that you can use "principals": {{ list .Token.preferred_username | toJson }}

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@LecrisUT
Comment options

@maraino
Comment options

@maraino
Comment options

@LecrisUT
Comment options

Answer selected by LecrisUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants