Ambiguity of values
There can be ambiguities when passing a JSON object as a value for a property. Normally, a value as an object is used as a command (to manipulate multiple links, string functions) or possibly for JSON property assignment. It is the command mode that is preferred. As long as the object does not look like a command (and the type of the property does not induce ambiguity), it is considered as any value (so not a command), but if it is necessary to pass a value that could be considered as a command, we can pass the JSON in an object that has a property of name $jsonval
.
This is a command, to replace ids in a property multiple :
"property": {
"$values": [3, 4, 5],
"$mode": "replace"
}
This is a value:
"property": {
"$jsonval": {
"$values": [3, 4, 5],
"$mode": "replace"
}
}
Â