UI5 Development: JSON Delta Operations
Tags:
Delta operations in the json format are possible. Here we show delta operations of the data section.
Remove data entries
With the following JSON one data point is removed
{
"SAPVB": {
"Data": {
"Remove": {
"name": "Flags",
"type":"E",
"N":
{
"E": [
{
"key": "1"
}
]
}
}
}
}
}
more points are removed by
{
"SAPVB": {
"Data": {
"Remove": {
"name": "Flags",
"type":"E",
"N":
{
"E": [
{
"key": "1"
},
{
"key": "2"
}
]
}
}
}
}
}
Modify data entries
Specific rows can be modified by a delta operation.
{
"SAPVB": {
"Data": {
"Set": {
"name": "Flags",
"type":"E",
"N":
{
"E": [
{
"key": "1",
"value": "new value"
}
]
}
}
}
}
}