<@U41021CCB> It's possible to change to JsonObject...
# tornadofx
e
@nimakro It's possible to change to JsonObject, but there are a couple of caveats. First, it would partly break the API, because the
config
field would be of a different type. That's not a big deal because of the way it's used though (`config.set`/`config.save()` etc), so we would just need to make sure we add those functions to
JsonObject
. The biggest issue is that
JsonObject
is not writable, so the
set
function etc would need to do a Copy On Write and create a new
JsonObject
. Not hard to do, but still. The config object should be of type
tornadofx.Config : JsonObject
, or something so we can add the appropriate save function. The
Config
object also needs a field for the type (
COMPONENT
or
GLOBAL
) so it knows where to save itself.