public function json_in($data) { $array = json_decode($data); if (is_array($array)) { $this->container = $array; return true; } return false; }