pretty print

This commit is contained in:
Fred Tempez 2023-03-16 11:38:39 +01:00
parent abd64c2a9b
commit 903c4e703c

View File

@ -142,7 +142,8 @@ class JsonDb extends \Prowebcraft\Dot
*/ */
public function save() public function save()
{ {
$v = json_encode($this->data, JSON_UNESCAPED_UNICODE | LOCK_EX); //$v = json_encode($this->data, JSON_UNESCAPED_UNICODE | LOCK_EX);
$v = json_encode($this->data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | LOCK_EX);
$l = strlen($v); $l = strlen($v);
$t = 0; $t = 0;
while ($t < 5) { while ($t < 5) {