src/Mysql.php
public function getJsonRows(
        array $arrWhat = ['*'], 
        array $arrWhere = [], 
        array $arrOrder = ['`id` ASC'], 
        array $arrLimit = []
    ) : string
    {
        $rows = $this->loadByPrepStmt($arrWhat, $arrWhere, $arrOrder, $arrLimit);
        $json = json_encode($rows, JSON_UNESCAPED_UNICODE);
        return $json;
    }
public function getJsonRows(
        array $arrWhat = ['*'], 
        array $arrWhere = [], 
        array $arrOrder = ['`id` ASC'], 
        array $arrLimit = []
    ) : string
    {
        $rows = $this->loadByPrepStmt($arrWhat, $arrWhere, $arrOrder, $arrLimit);
        $json = json_encode($rows, JSON_UNESCAPED_UNICODE);
        return $json;
    }
public function getJsonRows ( array $ arrWhat = [ '*' ] , array $ arrWhere = [ ] , array $ arrOrder = [ '`id` ASC' ] , array $ arrLimit = [ ] ) : string { $ rows = $ this -> loadByPrepStmt ( $ arrWhat , $ arrWhere , $ arrOrder , $ arrLimit ) ; $ json = json_encode ( $ rows , JSON_UNESCAPED_UNICODE ) ; return $ json ; }
Extension to LoadByPrepStmt, this will return result as JSON instead of array
@param array $arrWhat
@param array $arrWhere
@param array $arrOrder
@param array $arrLimit
@return string JSON
Extension to LoadByPrepStmt this will return result as JSON instead of array