public function perform($targetDocument)
{
$pointer = new Pointer($targetDocument);
try {
$pointer->get($this->getPath());
} catch (NonexistentValueReferencedException $e) {
return $targetDocument;
}
$targetDocument = json_decode($targetDocument);
$this->remove($targetDocument, $this->getPointerParts());
return json_encode($targetDocument, JSON_UNESCAPED_UNICODE);
}