How can I resolve this issue when setting JSON config file as environment variable?
Please escape the double quotes in your setup, here are two ways to do that:
gigalixir config:set JSON_VARIABLE=’{“key”: “value”}’
Additionally, if your JSON gets really complex, a lot of people will base64 encode the JSON, store that in the config, then on retrieval decode the base64 before decoding the JSON.
gigalixir config:set JSON_VARIABLE=”{"key": "value"}”