Classes/SpigetAuthorSearch.php
/**
     * Get the results as json.
     * @return array
     */
Get the results as json.
@return array
Get the results as json . @return array
public function toJson()
    {
        $arr = [];
        foreach ( $this->results as $result ) array_push($arr, $result->toArray() );
        return json_encode($arr, JSON_PRETTY_PRINT);
    }
public function toJson ( ) { $ arr = [ ] ; foreach ( $ this -> results as $ result ) array_push ( $ arr , $ result -> toArray ( ) ) ; return json_encode ( $ arr , JSON_PRETTY_PRINT ) ; }
Get the results as json.
Get the results as json .