[SOLVED] /EDIT a nested dict value

Hello
Suppose I have a switch, with these values:

{
“1”: {“name”: “name1”, “id”:1, “dict”:{“a”:“b”}},
“2”: {“name”: “name2”, “id”:2, “dict”:{“b”:c}}
}
Is it possible, wih /EDIT, to update the ‘dict’ property ?
If I use /EDIT/MERGE, I can add items to the dict, but not clear it…

I tried to send:
{“values”:{“1”:{“dict”:null}}} then {“values”:{“1”:{“dict”:{“y”:“x”}}}}, it seems to work but not always…

Is it possible to /EDIT a subset of a value?

Thx

Is it possible to /EDIT a subset of a value?

Not currently.

{“values”:{“1”:{“dict”:null}}} then {“values”:{“1”:{“dict”:{“y”:“x”}}}}, it seems to work but not always…

It's weird that it doesn't work consistently ? Are you sure the messages are delivered in the right order ?

I was testing while this bug was still happening: https://github.com/jean-emmanuel/open-stage-control/issues/556

Now everything is going as it should, thanks

1 Like