protected function parseJsonToUpdateObject($json) { $parsedObject = json_decode($json, true); if (is_null($parsedObject)) { return null; } $objName = key($parsedObject); if ($objName == $this->getObjectName()) { // Update the current object Zipmark_Base::buildObject($objName, $parsedObject[$objName], $this); } }