From 3598ab2954ce7d4e64d86dfe792803bc7eff41f9 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 24 Aug 2024 15:04:29 +0200 Subject: [PATCH] disable save to json pretty print --- core/class/jsondb/JsonDb.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/class/jsondb/JsonDb.class.php b/core/class/jsondb/JsonDb.class.php index 760e4445..d96f8b99 100644 --- a/core/class/jsondb/JsonDb.class.php +++ b/core/class/jsondb/JsonDb.class.php @@ -149,7 +149,8 @@ class JsonDb extends \Prowebcraft\Dot public function save() { // Encode les données au format JSON avec les options spécifiées - $encoded_data = json_encode($this->data, JSON_UNESCAPED_UNICODE | JSON_FORCE_OBJECT | JSON_PRETTY_PRINT); + //$encoded_data = json_encode($this->data, JSON_UNESCAPED_UNICODE | JSON_FORCE_OBJECT | JSON_PRETTY_PRINT); + $encoded_data = json_encode($this->data, JSON_UNESCAPED_UNICODE | JSON_FORCE_OBJECT); // Vérifie la longueur de la chaîne JSON encodée $encoded_length = strlen($encoded_data);