awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

C++ JSON Libraries

Ranking updated Jul 13, 2026

For a lightweight json library for C++, the first results are miloyip/rapidjson (RapidJSON is a high-performance, header-only C++ library that provides both DOM and SAX-style interfaces for parsing and serializing JSON, making it a comprehensive solution for the requested requirements), nlohmann/json (This library is a header-only C++ JSON parser that provides a comprehensive, intuitive API for DOM-based manipulation, serialization, and streaming, making it the industry-standard choice for this category) and tencent/rapidjson (RapidJSON is a high-performance, header-only C++ library that provides both DOM-based and SAX-style parsing, making it a comprehensive solution for JSON manipulation that aligns perfectly with your requirements). simdjson/simdjson and open-source-parsers/jsoncpp round out the shortlist. Compare the match explanations and check the project documentation against your requirements.

We curate open-source GitHub repositories matching “best c++ json libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.

C++ JSON Libraries

Find the best repos with AI.We'll search the best matching repositories with AI.
  • miloyip/rapidjsonmiloyip avatar

    miloyip/rapidjson

    15,095View on GitHub↗

    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

    RapidJSON is a high-performance, header-only C++ library that provides both DOM and SAX-style interfaces for parsing and serializing JSON, making it a comprehensive solution for the requested requirements.

    C++DOM ParsersSAX ParsersJSON
    View on GitHub↗15,095
  • nlohmann/jsonnlohmann avatar

    nlohmann/json

    49,944View on GitHub↗

    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

    This library is a header-only C++ JSON parser that provides a comprehensive, intuitive API for DOM-based manipulation, serialization, and streaming, making it the industry-standard choice for this category.

    C++Streaming ParsersJSON Processors
    View on GitHub↗49,944
  • tencent/rapidjsonTencent avatar

    Tencent/rapidjson

    15,000View on GitHub↗

    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

    RapidJSON is a high-performance, header-only C++ library that provides both DOM-based and SAX-style parsing, making it a comprehensive solution for JSON manipulation that aligns perfectly with your requirements.

    C++JSONHeader-Only LibrariesJSON Libraries
    View on GitHub↗15,000
  • simdjson/simdjsonsimdjson avatar

    simdjson/simdjson

    23,260View on GitHub↗

    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

    This library provides a high-performance, header-only solution for parsing and manipulating JSON that leverages SIMD instructions for extreme efficiency, perfectly matching the requirements for a modern C++ JSON tool.

    C++JSONJSON
    View on GitHub↗23,260
  • open-source-parsers/jsoncppopen-source-parsers avatar

    open-source-parsers/jsoncpp

    8,850View on GitHub↗

    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

    JsonCpp is a well-established C++ library that provides the requested DOM-based parsing, serialization, and manipulation capabilities, though it is a traditional compiled library rather than a header-only one.

    C++JSON
    View on GitHub↗8,850
  • dropbox/json11dropbox avatar

    dropbox/json11

    2,589View on GitHub↗

    A tiny JSON library for C++11.

    This is a lightweight, header-only C++11 library that provides simple DOM-based parsing and serialization, making it a straightforward choice for projects requiring minimal integration overhead.

    C++JsonJSON and Data ParsingJSON Parsing
    View on GitHub↗2,589
  • sheredom/json.hsheredom avatar

    sheredom/json.h

    826View on GitHub↗

    🗄️ single header json parser for C and C++

    This is a single-header JSON parser for C and C++ that provides a lightweight, easily integrated solution for parsing and manipulating JSON data.

    CData Formats and ParsingJsonJSON Processing
    View on GitHub↗826
  • bblanchon/arduinojsonbblanchon avatar

    bblanchon/ArduinoJson

    7,176View on GitHub↗

    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

    This library provides efficient JSON parsing and serialization specifically optimized for memory-constrained environments, making it a highly capable choice for C++ projects where performance and resource management are critical.

    C++Embedded Serialization UtilitiesJSON ParsingBinary Data Encoding
    View on GitHub↗7,176
  • esnme/ultrajsonesnme avatar

    esnme/ultrajson

    4,485View on GitHub↗

    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.

    This is a C-based library primarily designed for Python bindings rather than a native C++ library intended for integration into C++ projects, making it a building block for other languages rather than a C++ JSON tool.

    C++High-Performance JSON EncodersJSON Data Parsers
    View on GitHub↗4,485
  • stedolan/jqstedolan avatar

    stedolan/jq

    34,932View on GitHub↗

    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.

    This is a command-line utility for processing JSON rather than a C++ library intended for integration into your own codebase for parsing and serialization.

    CJSONJSON Processors
    View on GitHub↗34,932
  • davegamble/cjsonDaveGamble avatar

    DaveGamble/cJSON

    12,466View on GitHub↗

    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

    This is a C library designed for memory-constrained environments, which lacks the C++-specific features, type safety, and modern standard support expected for a C++ JSON library.

    CJSONJSON Serialization Libraries
    View on GitHub↗12,466
  • flightcontrolhq/superjsonflightcontrolhq avatar

    flightcontrolhq/superjson

    5,260View on GitHub↗

    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

    This is a TypeScript library designed for serializing complex JavaScript objects with type metadata, which does not provide the C++ implementation or the DOM/SAX parsing capabilities required for a C++ JSON library.

    TypeScriptJSON Serialization Libraries
    View on GitHub↗5,260
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
miloyip/rapidjson15.1KC++NOASSERTIONFeb 5, 2025
nlohmann/json49.9KC++MITJun 12, 2026
tencent/rapidjson15KC++otherFeb 5, 2025
simdjson/simdjson23.3KC++apache-2.0Feb 19, 2026
open-source-parsers/jsoncpp8.9KC++NOASSERTIONJun 16, 2026
dropbox/json112.6KC++MITMar 25, 2020
sheredom/json.h826CUnlicenseMay 25, 2026
bblanchon/arduinojson7.2KC++MITMay 28, 2026
esnme/ultrajson4.5KC++NOASSERTIONJun 14, 2026
stedolan/jq34.9KCNOASSERTIONJun 16, 2026

Related searches

  • a high performance JSON library for C#
  • a C++ library for data serialization
  • a high performance JSON library for Go
  • a high performance JSON library for Java
  • a high performance JSON parsing library
  • a lightweight logging library for C++
  • a JSON processor and query tool for the command line
  • a cross-platform networking library for C++