public function override($input)
{
$old = (array) json_decode($this->json);
foreach ($old as $key => $value) {
unset($this->{$key});
}
$this->json = json_encode($input);
$this->count = count($values);
foreach ($input as $key => $value) {
$this->{$key} = $value;
}
}