correct json generation
This commit is contained in:
parent
604de64deb
commit
ba96f09717
6
tic.cpp
6
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user