better json save

This commit is contained in:
Fred Tempez 2023-03-10 13:59:46 +01:00
parent 0a8a8ecd72
commit 508ec87c96

View File

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