remove abstract method

Object? remove(
  1. Object? document
)

Returns a copy of document with the value at the referenced location removed. This method returns null if the entire document is referenced (i.e. JSON Path expression is an empty string).

The semantics of this method is the same as the "remove" operation described in RFC 6902 (JSON Patch).

The target location must exist, otherwise BadRoute will be thrown. If the target location specifies an array index, the value at the index is removed and the elements with higher indexes are shifted to the left.

Implementation

Object? remove(Object? document);