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
|
// Use snprintf to construct the JSON string efficiently
|
||||||
snprintf(jres, sizeof(jres),
|
snprintf(jres, sizeof(jres),
|
||||||
"\"%s\": [\"%s\", \"%s\", \"%s\"]",
|
"\"%s\": \"%s\"",
|
||||||
SelectedEtiquette[i].c_str(),
|
SelectedEtiquette[i].c_str(),
|
||||||
TicValues[i].globale.c_str(),
|
TicValues[i].value.c_str());
|
||||||
TicValues[i].value.c_str(),
|
|
||||||
TicValues[i].checkok?"true":"false");
|
|
||||||
response += jres;
|
response += jres;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user