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

github.com/bblanchon/ArduinoJson @v7.4.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v7.4.3 ↗ · + Follow
2,345 symbols 5,692 edges 354 files 134 documented · 6% updated 8d agov7.2.2 · 2026-03-02★ 7,18517 open issues

Browse by type

Functions 1,806 Types & classes 539
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ArduinoJson


GitHub Workflow Status Continuous Integration Fuzzing Status Coveralls branch
GitHub stars GitHub Sponsors

ArduinoJson is a C++ JSON library for Arduino and IoT (Internet Of Things).

Features

Quickstart

Deserialization

Here is a program that parses a JSON document with ArduinoJson.

const char* json = "{\"sensor\":\"gps\",\"time\":1351824120,\"data\":[48.756080,2.302038]}";

JsonDocument doc;
deserializeJson(doc, json);

const char* sensor = doc["sensor"];
long time          = doc["time"];
double latitude    = doc["data"][0];
double longitude   = doc["data"][1];

See the tutorial on arduinojson.org

Serialization

Here is a program that generates a JSON document with ArduinoJson:

JsonDocument doc;

doc["sensor"] = "gps";
doc["time"]   = 1351824120;
doc["data"][0] = 48.756080;
doc["data"][1] = 2.302038;

serializeJson(doc, Serial);
// This prints:
// {"sensor":"gps","time":1351824120,"data":[48.756080,2.302038]}

See the tutorial on arduinojson.org

Sponsors

ArduinoJson is thankful to its sponsors. Please give them a visit; they deserve it!

1technophile LArkema

If you run a commercial project that embeds ArduinoJson, think about sponsoring the library's development: it ensures the code that your products rely on stays actively maintained. It can also give your project some exposure to the makers' community.

If you are an individual user and want to support the development (or give a sign of appreciation), consider purchasing the book Mastering ArduinoJson ❤, or simply cast a star ⭐.

Core symbols most depended-on inside this repo

Shape

Method 1,198
Function 608
Class 506
Enum 33

Languages

C++100%

Modules by API surface

extras/tests/catch/catch.hpp1,345 symbols
src/ArduinoJson/Variant/ConverterImpl.hpp57 symbols
extras/tests/Helpers/Allocators.hpp50 symbols
src/ArduinoJson/Variant/VariantData.hpp46 symbols
src/ArduinoJson/Variant/VariantCompare.hpp27 symbols
src/ArduinoJson/Json/JsonDeserializer.hpp27 symbols
src/ArduinoJson/Document/JsonDocument.hpp25 symbols
src/ArduinoJson/Variant/VariantRefBase.hpp19 symbols
src/ArduinoJson/Strings/Adapters/RamString.hpp17 symbols
src/ArduinoJson/Object/JsonObject.hpp16 symbols
src/ArduinoJson/Numbers/FloatTraits.hpp16 symbols
src/ArduinoJson/Memory/ResourceManager.hpp16 symbols

For agents

$ claude mcp add ArduinoJson \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page