How do you remove a value from an object in an http patch request?
For example:
{
"types": [
{
"id": 12,
"name": "xyz",
},
{
"id": 13,
"name": "ABC",
}
]
}
How do you remove where type/id=13?
Is it like this?
[{
"op":"remove",
"path":"types/13"
}]
Or like this?
[{
"op":"remove",
"path":"types",
"value":[{"id":13}]
}]
Also, Im not looking the delete the position no2 solution!
Thanks :)