# C++ JSON Libraries

> AI-ranked search results for `best c++ json libraries` on awesome-repositories.com — ordered by an LLM for relevance, best match first. 119 total matches; showing the top 12.

Explore on the web: https://awesome-repositories.com/q/best-c-json-libraries

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [this search on awesome-repositories.com](https://awesome-repositories.com/q/best-c-json-libraries).**

## Results

- [miloyip/rapidjson](https://awesome-repositories.com/repository/miloyip-rapidjson.md) (15,095 ⭐) — RapidJSON is a high-performance C++ library used for parsing and generating JSON data. It provides both document object model and stream-based interfaces to transform JSON strings into structured data and vice versa.

The library includes a JSON schema validator to verify that documents conform to predefined rules and a Unicode transcoder for converting strings between UTF-8, UTF-16, and UTF-32 encodings. It also supports relaxed parsing for non-standard JSON containing comments or trailing commas.

Additional capabilities cover JSON pointer navigation for locating specific values and string s
- [nlohmann/json](https://awesome-repositories.com/repository/nlohmann-json.md) (49,944 ⭐) — This library is a header-only C++ framework designed for the serialization, parsing, and manipulation of structured data. It provides a recursive variant data model that represents arbitrary structures as native types, allowing developers to navigate, modify, and patch hierarchical data using standard pointer paths and declarative update patterns.

The project distinguishes itself through its template-based architecture, which enables type-safe data structures and custom type mapping at compile time. It offers a unified interface for binary format abstraction, supporting multiple compact repre
- [tencent/rapidjson](https://awesome-repositories.com/repository/tencent-rapidjson.md) (15,000 ⭐) — RapidJSON is a header-only C++ library designed for high-performance parsing, generation, and manipulation of JSON data. It functions as a dual-mode engine, providing both an in-memory document object model for tree-based manipulation and a stream-based interface for event-driven processing. The library is built to minimize memory footprint and maximize execution speed, making it suitable for resource-constrained environments.

The library distinguishes itself through advanced memory management and optimization techniques, including in-situ parsing that modifies input buffers directly to elimi
- [simdjson/simdjson](https://awesome-repositories.com/repository/simdjson-simdjson.md) (23,260 ⭐) — simdjson is a high-performance, header-only C++ library designed for parsing, querying, and serializing JSON data with minimal memory overhead. It functions as a hardware-aware data processing engine that leverages vector instructions to achieve gigabyte-per-second parsing speeds. By detecting host processor capabilities at runtime, the library automatically selects the most efficient instruction sets to accelerate structural analysis and validation.

The library distinguishes itself through a focus on extreme efficiency and resource management. It utilizes memory mapping and padded buffer ali
- [open-source-parsers/jsoncpp](https://awesome-repositories.com/repository/open-source-parsers-jsoncpp.md) (8,850 ⭐) — JsonCpp is a C++ library for parsing, manipulating, and generating JSON data. It functions as a data interchange tool that provides a JSON parser to convert formatted text into structured data and a JSON serializer to transform internal data structures back into valid JSON strings.

The library features the ability to preserve non-standard JSON comments during the deserialization and serialization process, which supports the management of human-readable configuration files.

The project implements a tree-based internal representation for programmatic data access and uses a builder-based config
- [dropbox/json11](https://awesome-repositories.com/repository/dropbox-json11.md) (2,589 ⭐) — A tiny JSON library for C++11.
- [sheredom/json.h](https://awesome-repositories.com/repository/sheredom-json-h.md) (826 ⭐) — 🗄️ single header json parser for C and C++
- [bblanchon/arduinojson](https://awesome-repositories.com/repository/bblanchon-arduinojson.md) (7,176 ⭐) — ArduinoJson is a C++ library for parsing and manipulating JSON data and MessagePack binary streams on microcontrollers with limited memory and processing power. It provides the core primitives necessary for embedded data serialization and parsing, enabling devices to exchange structured data over serial or network interfaces.

The library is distinguished by its focus on microcontroller memory management, employing strategies such as pool-based allocation, string deduplication, and non-owning string views to minimize RAM usage. It further optimizes for constrained environments by allowing cons
- [esnme/ultrajson](https://awesome-repositories.com/repository/esnme-ultrajson.md) (4,485 ⭐) — UltraJSON is a high-performance JSON library and parser written in C with bindings for Python. It provides a fast alternative to standard JSON processing for decoding JSON strings into native data structures and encoding data structures back into JSON strings.

The library utilizes a C-based engine to reduce processing latency and increase throughput for JSON generation and parsing. It is designed to accelerate data pipelines and optimize the handling of JSON payloads.
- [stedolan/jq](https://awesome-repositories.com/repository/stedolan-jq.md) (34,932 ⭐) — jq is a command-line JSON processor and data transformer. It provides a functional query language used to slice, filter, map, and transform structured JSON data directly within a terminal.

The utility functions as a data transformer that reshapes JSON input into different structures or formats based on declarative logic. This allows for the extraction and analysis of structured data from sources such as API responses and system logs.
- [davegamble/cjson](https://awesome-repositories.com/repository/davegamble-cjson.md) (12,466 ⭐) — cJSON is a lightweight library for parsing, creating, and modifying JSON data structures within C applications. It provides a comprehensive set of utilities for transforming raw text into navigable objects, manipulating data fields within collections, and serializing complex structures into formatted or unformatted strings.

The library is designed for memory-sensitive and resource-constrained environments, utilizing manual memory management and type-tagged union structures to maintain a minimal footprint. It employs recursive descent parsing and in-place string manipulation to process data ef
- [flightcontrolhq/superjson](https://awesome-repositories.com/repository/flightcontrolhq-superjson.md) (5,260 ⭐) — Superjson is a lossless JSON serialization library and data transcoder. It converts complex JavaScript and TypeScript data types into strings and metadata to ensure that type identity is preserved during data transfer.

The library preserves non-native types such as Dates, Maps, and Sets by splitting values into a JSON-compatible payload and a separate map of type-specific metadata. It utilizes a registry-based mapping system that allows for the definition of custom type handlers to manage third-party data types during serialization and deserialization.

This utility supports cross-process dat
