input “settingName.id1” ends up becoming settings.put(“settingName.id1”, “inputValue”)
but I’d like to achieve settings[“settingName”].put(“id1”, “inputValue”)
So, wondering if there’s a way to work the input’s name argument to achieve that goal. This would make managing dependency settings easier. For cases where the value is a device object (and you can’t add mapped elements to the object), you could just structure your settings like
settings = { “remote”: {“device”: Device Object, “dependent Devices”: [] } }
Nah, talking about Nesting the setting inside of another map. With your code, you have a setting named devices with a value of the device object. Then you have a setting with the name of the device id and whatever value.
I’m talking about having a setting that resides [“level1”:[“settingname”:deviceObject]]