• Stars
    star
    6,718
  • Rank 5,885 (Top 0.2 %)
  • Language
    C++
  • License
    MIT License
  • Created almost 11 years ago
  • Updated 29 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ“Ÿ JSON library for Arduino and embedded C++. Simple and efficient.

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!

Programming Electronics Academy

1technophile

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ย โญ.

More Repositories

1

pdfium-binaries

๐Ÿ“ฐ Binary distribution of PDFium
Shell
887
star
2

ArduinoStreamUtils

๐Ÿ’ช Power-ups for Arduino streams
C++
258
star
3

ArduinoTrace

๐Ÿ““ A dead-simple tracing library to debug your Arduino programs
C++
188
star
4

django-htmx-modal-form

Django+HTMX modal form
Python
100
star
5

WpfBindingErrors

๐Ÿ’ฅ Turn WPF Binding errors into exception
C#
78
star
6

django-htmx-messages-framework

Django+HTMX: integration with the messages framework
Python
51
star
7

dllhelper

How to GetProcAddress() like a boss ๐Ÿ˜Ž
C++
50
star
8

cpp4arduino

Samples files for cpp4arduino.com
C++
48
star
9

ArduinoContinuousStepper

An Arduino library to spin stepper motors in continuous motions.
C++
39
star
10

disable-windows-keys

A tiny application that disables the Windows keys of your keyboard. Very useful in games!
C
21
star
11

HighSpeedMvvm

โšก๏ธ MVVM : How to deal with fast changing properties ?
C#
19
star
12

ArduinoJsonAssistant

Source code of the ArduinoJson Assistant
JavaScript
13
star
13

SublimeText-HighlightBuildErrors

๐Ÿ‘ป A plugin for Sublime Text 3 that highlights the lines that caused errors in the build
Python
12
star
14

BuckOperator

๐Ÿ’ฒ The C++ "buck" operator (aka the dollar sign operator)
C++
10
star
15

BlogRipper

Get links to all articles of a blog
Python
8
star
16

HpglViewer

An application to view HPGL files
C#
6
star
17

ArduinoJson-vs-Arduino_JSON

ArduinoJson vs Arduino_JSON
C++
3
star
18

CsharpLeetSpeak

Proof of concept: modify literal strings of an assembly at runtime
C#
2
star
19

django-sse-demo

Proof of concept implementation for server sent event with Django 3.1 async views
Python
2
star
20

CodeJam

My attempts to solve the puzzles of Code Jam
C#
2
star
21

UnhandledExceptions

Dealing with unhandled exception in C# projects
C#
2
star
22

ArduinoJsonTroubleshooter

Source code of the ArduinoJson Troubleshooter
Vue
1
star
23

conan-ArduinoJson

Conan.io package for ArduinoJson
Python
1
star
24

RecursiveCleaner

Keep your hard-drive tidy with XML rules
C#
1
star
25

WpfAttachedProperties

WPF: attached properties as an alternative to code behind
C#
1
star
26

PlayWithKodi

A Chrome extension to send videos to Kodi
JavaScript
1
star
27

ArduinoJson-msgpack.org

MessagePack library for Arduino and embedded C++ | msgpack.org[Arduino/C++]
1
star