Skip to content

Commit

Permalink
* \DDTools\Tools\Objects::convertType is used instead of json_encode`.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronef committed Oct 6, 2024
1 parent 1f8a387 commit ee75c7f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Outputter/Json/Outputter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class Outputter extends \ddGetDocuments\Outputter\Outputter {
/**
* parse
* @version 2.5 (2024-10-05)
* @version 2.5.1 (2024-10-06)
*
* @param $data {Output}
*
Expand Down Expand Up @@ -76,10 +76,9 @@ public function parse(Output $data){
$result[] = $result_item;
}

// JSON_UNESCAPED_UNICODE — Не кодировать многобайтные символы Unicode || JSON_UNESCAPED_SLASHES — Не экранировать /
return json_encode(
$result,
JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES
);
return \DDTools\Tools\Objects::convertType([
'object' => $result,
'type' => 'stringJsonAuto',
]);
}
}

0 comments on commit ee75c7f

Please sign in to comment.