private function amendDynamicAttributesToJson(array &$json) {
        if (!is_null($this->package_version)) {
            $json['version'] = array();
            $json['version']['release'] = $this->package_version;
        }
        if (!is_null($this->package_name)) {
            $json['name'] = $this->package_name;
        }
    }