mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-08-16 02:51:14 +02:00
Updated FAQ (markdown)
6
FAQ.md
6
FAQ.md
@@ -117,9 +117,9 @@ bool deserialize(SensorData& data, char* json)
|
|||||||
{
|
{
|
||||||
StaticJsonBuffer<SENSORDATA_JSON_SIZE> jsonBuffer;
|
StaticJsonBuffer<SENSORDATA_JSON_SIZE> jsonBuffer;
|
||||||
JsonObject& root = jsonBuffer.parseObject(json);
|
JsonObject& root = jsonBuffer.parseObject(json);
|
||||||
data.name = json["name"];
|
data.name = root["name"];
|
||||||
data.time = json["time"];
|
data.time = root["time"];
|
||||||
data.value = json["value"];
|
data.value = root["value"];
|
||||||
return root.success();
|
return root.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user