What I want to do
Defining a base set of objects which can be enhanced by an environment variable. In the following you see a little example of my hocon config file so far.
foo.bar-base= [
{a: "hello", b: "world"},
{a: "hello", b: "stackoverflow"}
]
foo.bar-extended = ${?EXTENDED}
foo.bar = ${foo.bar-base} ${foo.bar-extended}
The Problem
When trying to define elements to add as environment variables I get the exception that states that foo.bar has type list of STRING rather than list of OBJECT.
Is there any way to make the value of the environment variable be parsed as object?
EXTENDED.0={a:"hello", b:"rest"}