mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-06-25 01:11:35 +02:00
17 lines
354 B
C++
17 lines
354 B
C++
// ArduinoJson - https://arduinojson.org
|
|
// Copyright © 2014-2025, Benoit BLANCHON
|
|
// MIT License
|
|
|
|
#include <ArduinoJson.h>
|
|
|
|
extern "C" void app_main() {
|
|
char buffer[256];
|
|
JsonDocument doc;
|
|
|
|
doc["hello"] = "world";
|
|
serializeJson(doc, buffer);
|
|
deserializeJson(doc, buffer);
|
|
serializeMsgPack(doc, buffer);
|
|
deserializeMsgPack(doc, buffer);
|
|
}
|