Closed Regdr closed 10 months ago
Hi @Regdr,
Assuming your input looks like this:
{
"switch": {
"fan": "on"
}
}
Then, you can use the following:
if (doc["switch"]["fan"] == "on")
Best regards, Benoit
Thanks @bblanchon is working
You're welcome, @Regdr. Thank you for using ArduinoJson! Don't forget to cast a star to support the project :wink:
Hello I am trying to make a condition from a value taken from http://......./ test.json usually I put all the connection settings and print immediately on tft, but now I need to make a condition depending of the value received
part of the code:
my intention is to print some simbol if the condition of the switch is ON, many thanks