MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / convertToJson

Function convertToJson

extras/tests/JsonVariant/converters.cpp:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14};
15
16void convertToJson(const Date& src, JsonVariant dst) {
17 dst["day"] = src.day;
18 dst["month"] = src.month;
19 dst["year"] = src.year;
20}
21
22void convertFromJson(JsonVariantConst src, Date& dst) {
23 dst.day = src["day"];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected