public function toJson($render = false)
        {
            $json = json_encode($this->toArray(true, true));

            if (false === $render) {
                return $json;
            } else {
                header('content-type: application/json; charset=utf-8');
                die($json);
            }
        }