JSON.CLEAR
Clear container values (arrays/objects) and set numeric values to
Required arguments
key
is key to parse.
is JSONPath to specify. Default is root $
. Nonexisting paths are ignored.
Return
JSON.CLEAR returns an integer reply specified as the number of values cleared. For more information about replies, see .
Note
Already cleared values are ignored for empty containers and zero numbers.
Create a JSON document.
Clear all container values. This returns the number of objects with cleared values.
Get the updated document. Note that numeric values have been set to 0
.
See also
| JSON.ARRINSERT