public function get(): string
    {
        $array = (new ToArrayConverter($this->jory, $this->minified))->get();

        // if array is empty convert into empty object
        // To prevent json being an array [] instead of an object {}
        if (empty($array)) {
            $array = new \stdClass();
        } else {
            $this->fixEmptyRelationArrays($array);
        }

        return json_encode($array);
    }