/
Ambiguity of values
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"
}
}
, multiple selections available,
Related content
Modify a resource property: Modification by value
Modify a resource property: Modification by value
More like this
Accessing data
Accessing data
Read with this
Modify a resource property: Multiple child
Modify a resource property: Multiple child
More like this
Create or modify data
Create or modify data
Read with this
Modify a resource property: Standard values
Modify a resource property: Standard values
More like this
Delete data
Delete data
Read with this