Nested environment variables syntax

Hello, can I somehow use and set nested environment variables in Netlify? Let’s say I’ve got my local config in the format:

  "foo": {
    "bar":  "baz"

I want to store baz value to the environment variable. What should be the name/key of this environment variable?
What I tried:

I’m using .NET5.

Thank you :heart:

1 Like

I’ve had a mistake in my code where appsettings.json overrode those environment variables. The double underscore pattern mentioned above works flawlessly.

1 Like

thanks for posting your solution! glad its working.

1 Like