How does the JSON field in the Variable Raw Editor work?
rojwilco
HOBBYOP

a year ago

I am trying to understand how i can pass configurations via the variables into a service, and I see there is a JSON entry box in the variable raw editor. How does this work? What format should the JSON be in, and how is that translated to environment variables in the service?

Solved

7 Replies

rojwilco
HOBBYOP

a year ago

N/A


erisa
HOBBY

a year ago

its just json { "VARIABLE1": "value 1", "VARIABLE2": "value 2" }and so on. It's just a different way to edit/add variables in addition to the pretty interface and the env format


erisa
HOBBY

a year ago

the above in env format would be
bash VARIABLE1="value 1" VARIABLE2="value 2"


rojwilco
HOBBYOP

a year ago

oh, so i can't really put complex stuff in there? nested lists, etc


erisa
HOBBY

a year ago

Yea you can't, it complains: JSON values must be strings or { value: string, description?: string | null }


rojwilco
HOBBYOP

a year ago

alright, thanks


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody 11 months ago


Loading...