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