From ba96f0971702e8a43bc43e2af93955d5ecac8b1e Mon Sep 17 00:00:00 2001 From: Nagoydede Date: Sun, 27 Apr 2025 00:06:19 +0200 Subject: [PATCH] correct json generation --- tic.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tic.cpp b/tic.cpp index 0162c1b..d37a7c3 100644 --- a/tic.cpp +++ b/tic.cpp @@ -302,11 +302,9 @@ String ticValuesAsJson() { // Use snprintf to construct the JSON string efficiently snprintf(jres, sizeof(jres), - "\"%s\": [\"%s\", \"%s\", \"%s\"]", + "\"%s\": \"%s\"", SelectedEtiquette[i].c_str(), - TicValues[i].globale.c_str(), - TicValues[i].value.c_str(), - TicValues[i].checkok?"true":"false"); + TicValues[i].value.c_str()); response += jres; }