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

2 years 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

2 years ago

N/A


2 years 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


2 years ago

the above in env format would be

VARIABLE1="value 1"
VARIABLE2="value 2"```


rojwilco
HOBBYOP

2 years ago

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


2 years ago

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


rojwilco
HOBBYOP

2 years ago

alright, thanks


2 years ago

!s


Status changed to Solved brody • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...