Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

📟 JSON library for Arduino and embedded C++. Simple and efficient.

License

NotificationsYou must be signed in to change notification settings

bblanchon/ArduinoJson

Repository files navigation

ArduinoJson


GitHub Workflow StatusContinuous IntegrationFuzzing StatusCoveralls branch
GitHub starsGitHub 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.

constchar* json ="{\"sensor\":\"gps\",\"time\":1351824120,\"data\":[48.756080,2.302038]}";JsonDocument doc;deserializeJson(doc, json);constchar* sensor = doc["sensor"];long time          = doc["time"];double latitude    = doc["data"][0];double longitude   = doc["data"][1];

See thetutorial 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 thetutorial on arduinojson.org

Sponsors

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

Programming Electronics Academy

1technophileLArkema

If you run a commercial project that embeds ArduinoJson, think aboutsponsoring 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 bookMastering ArduinoJson ❤, or simplycast a star ⭐.


[8]ページ先頭

©2009-2025 Movatter.jp