Skip to content

Commit 2eef41c

Browse files
author
jessevz
committed
Made responses smaller by not pretty printing the json
1 parent 9e3baf2 commit 2eef41c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inc/apiv2/common/AbstractBaseAPI.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ protected function object2Array(object $object, array $expands = []): array {
745745
* @throws JsonException
746746
*/
747747
protected static function ret2json(array $result): string {
748-
return json_encode($result, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR) . PHP_EOL;
748+
return json_encode($result, JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR) . PHP_EOL;
749749
}
750750

751751
/**

0 commit comments

Comments
 (0)