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);
    }
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);
    }
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 ) ; }
Get the Json string based on given Jory object.

@return string
Get the Json string based on given Jory object .