GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Categories
  • Newsletter
  • Submit
  • Login
  • Awesome C++
  • JSON

This view

  • Original page
  • New address

GeezerVison is showing cpp.libhunt.com — ArduinoJson Alternatives - C++ JSON | LibHunt

  • Subscribe
  • Submit
  • Categories
  • About
  • Login

ArduinoJson

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

bblanchon logo
arduinojson.org    Source Code    Docs    Changelog
Suggest Changes
Take the C++ Developer Survey - About 6 minutes on the tools, libraries and AI you use with C++. You get the results by email. Take the survey »
Popularity
8.6
Stable
Activity
5.1
-
Stars 7,246
Watchers 192
Forks 1,168
Last Commit 10 days ago

Description

It's designed to have the most intuitive API, the smallest footprint and is able to work without any allocation on the heap (no malloc).

It has been written with Arduino in mind, but it isn't linked to Arduino libraries so you can use this library in any other C++ project. For instance, it supports Aduino's String and Stream, but also std::string, std::istream and std::ostream.

Programming language: C++
License: MIT License
Tags: JSON     Serialization     Lightweight     Arduino    
Latest version: v7.4.3

ArduinoJson alternatives and similar libraries

Based on the "JSON" category.
Alternatively, view ArduinoJson alternatives based on common mentions on social networks and blogs.

  • json

    9.9 9.8 L1 ArduinoJson VS json
    JSON for Modern C++
    nlohmann logo
  • RapidJSON

    9.5 0.0 L1 ArduinoJson VS RapidJSON
    A fast JSON parser/generator for C++ with both SAX/DOM style API
    Tencent logo
  • SaaSHub - Software Alternatives and Reviews

    SaaSHub helps you find the best software and product alternatives
    Promo www.saashub.com
    SaaSHub Logo
  • simdjson

    9.5 9.5 ArduinoJson VS simdjson
    Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks
    simdjson logo
  • cJSON

    9.4 3.9 L3 ArduinoJson VS cJSON
    Ultralightweight JSON parser in ANSI C
    DaveGamble logo
  • JsonCpp

    9.1 7.8 L1 ArduinoJson VS JsonCpp
    A C++ library for interacting with JSON.
    open-source-parsers logo
  • yaml-cpp

    8.7 8.1 ArduinoJson VS yaml-cpp
    A YAML parser and emitter in C++
    jbeder logo
  • JSMN

    7.8 0.0 L3 ArduinoJson VS JSMN
    Jsmn is a world fastest JSON parser/tokenizer. This is the official repo replacing the old one at Bitbucket
    zserge logo
  • json-c

    7.8 8.7 ArduinoJson VS json-c
    https://github.com/json-c/json-c is the official code repository for json-c. See the wiki for release tarballs for download. API docs at http://json-c.github.io/json-c/
    json-c logo
  • Jansson

    7.7 7.2 L2 ArduinoJson VS Jansson
    C library for encoding, decoding and manipulating JSON data
    akheron logo
  • json11

    7.5 0.6 L2 ArduinoJson VS json11
    DISCONTINUED. A tiny JSON library for C++11. [MIT]
  • YAJL

    7.0 0.0 L3 ArduinoJson VS YAJL
    A fast streaming JSON parsing library in C.
    lloyd logo
  • LIBUCL

    6.2 8.1 L2 ArduinoJson VS LIBUCL
    Universal configuration library parser
    vstakhov logo
  • json-parser

    6.0 5.3 L1 ArduinoJson VS json-parser
    Very low footprint DOM-style JSON parser written in portable ANSI C
    json-parser logo
  • PicoJSON

    5.8 0.0 L1 ArduinoJson VS PicoJSON
    a header-file-only, JSON parser serializer in C++
    kazuho logo
  • frozen

    5.1 2.6 L1 ArduinoJson VS frozen
    JSON parser and generator for C/C++ with scanf/printf like interface. Targeting embedded systems.
    cesanta logo
  • json.h

    4.8 7.8 ArduinoJson VS json.h
    🗄️ single header json parser for C and C++
    sheredom logo
  • JSON++

    4.7 0.0 L1 ArduinoJson VS JSON++
    DISCONTINUED. A JSON parser in C++
  • QJson

    3.9 1.9 L1 ArduinoJson VS QJson
    DISCONTINUED. QJson is a qt-based library that maps JSON data to QVariant objects.
    flavio logo
  • libjson

    3.8 1.4 L3 ArduinoJson VS libjson
    a JSON parser and printer library in C. easy to integrate with any model.
    vincenthz logo
  • qt-json

    3.8 0.0 L3 ArduinoJson VS qt-json
    DISCONTINUED. A simple class for parsing JSON data into a QVariant hierarchy and vice versa.
    qt-json logo
  • Boost.PropertyTree

    3.1 0.7 L1 ArduinoJson VS Boost.PropertyTree
    Boost.org property_tree module
    boostorg logo
  • json_dto

    2.9 7.4 ArduinoJson VS json_dto
    A small header-only library for converting data between json representation and c++ structs
    Stiffstream logo
  • JeayeSON

    2.8 0.0 L2 ArduinoJson VS JeayeSON
    A very sane (header only) C++14 JSON library
    jeaye logo
  • json-voorhees

    2.7 9.3 L3 ArduinoJson VS json-voorhees
    A killer modern C++ library for interacting with JSON.
    tgockel logo
  • StructMapping

    2.6 0.0 ArduinoJson VS StructMapping
    Mapping json to and from a c++ structure
    bk192077 logo
  • Jsonifier

    2.4 4.7 ArduinoJson VS Jsonifier
    A few classes for extremely fast json parsing/serializing in modern C++. Possibly the fastest json parser in C++. Possibly the fastest json serializer in C++.
    nihilai-collective logo
  • jute

    2.4 2.2 L3 ArduinoJson VS jute
    Very simple C++ JSON Parser
    amir-s logo
  • ujson

    2.3 - ArduinoJson VS ujson
    µjson is a a small, C++11, UTF-8, JSON library. [MIT]
  • iod.metajson

    2.0 0.0 ArduinoJson VS iod.metajson
    Non-intrusive, high performance C++17 lightweight JSON de/serializer
    iodcpp logo
  • jvar

    1.8 0.0 ArduinoJson VS jvar
    JS inspired Variants and JSON parsing for C++
    YasserAsmi logo
  • jbson

    1.8 0.0 L1 ArduinoJson VS jbson
    JSON & BSON parser/writer
    chrismanning logo

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.

Do you think we are missing an alternative of ArduinoJson or a related project?

Add another 'JSON' Library

Popular Comparisons

  • ArduinoJson
    vs
    cJSON
  • ArduinoJson
    vs
    json
  • ArduinoJson
    vs
    RapidJSON
  • ArduinoJson
    vs
    FlatBuffers
  • ArduinoJson
    vs
    yaml-cpp

README


GitHub Workflow Status Continuous Integration Fuzzing Status Coveralls branch
Arduino Library Manager PlatformIO Registry GitHub stars GitHub Sponsors

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

Features

  • JSON deserialization
    • Optionally decodes UTF-16 escape sequences to UTF-8
    • Optionally stores links to the input buffer (zero-copy)
    • Optionally supports comments in the input
    • Optionally filters the input to keep only desired values
    • Supports single quotes as a string delimiter
    • Compatible with NDJSON and JSON Lines
  • JSON serialization
    • Can write to a buffer or a stream
    • Optionally indents the document (prettified JSON)
  • MessagePack serialization
  • MessagePack deserialization
  • Efficient
    • Twice smaller than the "official" Arduino_JSON library
    • Almost 10% faster than the "official" Arduino_JSON library
    • Consumes roughly 10% less RAM than the "official" Arduino_JSON library
    • Fixed memory allocation, no heap fragmentation
    • Optionally works without heap memory (zero malloc)
    • Deduplicates strings
  • Versatile
    • Supports custom allocators (to use external RAM chip, for example)
    • Supports String, std::string, and std::string_view
    • Supports Stream and std::istream/std::ostream
    • Supports Flash strings
    • Supports custom readers and custom writers
    • Supports custom converters
  • Portable
    • Usable on any C++ project (not limited to Arduino)
    • Compatible with C++98, C++11, C++14 and C++17
    • Zero warnings with -Wall -Wextra -pedantic and /W4
    • Header-only library
    • Works with virtually any board
      • Arduino boards: Uno, Due, Micro, Nano, Mega, Yun, Leonardo...
      • Espressif chips: ESP8266, ESP32
      • Lolin (WeMos) boards: D1 mini, D1 Mini Pro...
      • Teensy boards: 4.0, 3.2, 2.0
      • Particle boards: Argon, Boron, Electron, Photon...
      • Texas Instruments boards: MSP430...
      • Soft cores: Nios II...
    • Tested on all major development environments
      • Arduino IDE
      • Atmel Studio
      • Atollic TrueSTUDIO
      • Energia
      • IAR Embedded Workbench
      • Keil uVision
      • MPLAB X IDE
      • Particle
      • PlatformIO
      • Sloeber plugin for Eclipse
      • Visual Micro
      • Visual Studio
    • Even works with online compilers like wandbox.org
    • CMake friendly
  • Well designed
    • Elegant API
    • Thread-safe
    • Self-contained (no external dependency)
    • const friendly
    • for friendly
    • TMP friendly
    • Handles integer overflows
  • Well tested
    • Unit test coverage close to 100%
    • Continuously tested on
      • Visual Studio 2010, 2012, 2013, 2015, 2017, 2019, 2022
      • GCC 4.4, 4.6, 4.7, 4.8, 4.9, 5, 6, 7, 8, 9, 10, 11
      • Clang 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 5.0, 6.0, 7, 8, 9, 10
    • Continuously fuzzed with Google OSS Fuzz
    • Passes all default checks of clang-tidy
  • Well documented
    • Tutorials
    • Examples
    • How-tos
    • FAQ
    • Troubleshooter
    • Book
    • [Changelog](CHANGELOG.md)
  • Vibrant user community
    • Most popular of all Arduino libraries on GitHub
    • Used in hundreds of projects
    • Responsive support
    • Discord server

Quickstart

Deserialization

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

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

DynamicJsonDocument doc(1024);
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:

DynamicJsonDocument doc(1024);

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!

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 ⭐.

Do not miss the trending, libraries, news and articles with our weekly report.

Awesome C++ is part of the LibHunt network. Terms. Privacy Policy.

(CC)
BY-SA
Spin The Wheel Of Names for a cryptographically secure random name picker.
Schedule a when to meet poll.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.