diff --git a/src/Statement.php b/src/Statement.php index 7639c61..699e29c 100644 --- a/src/Statement.php +++ b/src/Statement.php @@ -534,6 +534,14 @@ public function rows() return $this->array_data; } + /** + * @return false|string + */ + public function jsonRows() + { + return json_encode($this->rows(), JSON_PRETTY_PRINT); + } + /** * @param array|string $arr * @param null|string|array $path