• Stars
    star
    6,467
  • Rank 5,850 (Top 0.2 %)
  • Language
    C++
  • License
    MIT License
  • Created over 10 years ago
  • Updated 3 months 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
721
star
2

ArduinoStreamUtils

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

ArduinoTrace

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

django-htmx-modal-form

Django+HTMX modal form
Python
83
star
5

WpfBindingErrors

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

dllhelper

How to GetProcAddress() like a boss ๐Ÿ˜Ž
C++
46
star
7

cpp4arduino

Samples files for cpp4arduino.com
C++
43
star
8

django-htmx-messages-framework

Django+HTMX: integration with the messages framework
Python
32
star
9

ArduinoContinuousStepper

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

disable-windows-keys

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

HighSpeedMvvm

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

SublimeText-HighlightBuildErrors

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

BuckOperator

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

ArduinoJsonAssistant

Source code of the ArduinoJson Assistant
JavaScript
8
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

CodeJam

My attempts to solve the puzzles of Code Jam
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

CsharpLeetSpeak

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

UnhandledExceptions

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

conan-ArduinoJson

Conan.io package for ArduinoJson
Python
1
star
23

RecursiveCleaner

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

WpfAttachedProperties

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

PlayWithKodi

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

ArduinoJson-msgpack.org

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