# RapidJSON

> A fast JSON parser/generator for C++ with both SAX/DOM style API

Source: https://talira.ai/catalog/rapidjson-e5gskcm5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / json](https://talira.ai/categories/developer-tools/parsing/json)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Supports: [JSON Schema](https://talira.ai/standards/json-schema.md)[^2]
- Backed by: [Tencent](https://talira.ai/orgs/tencent.md)

RapidJSON is a header-only JSON parser and generator for C++ with both SAX (streaming) and DOM APIs. It depends on no external libraries, not even the STL, keeps each JSON value to 16 bytes, uses a fast allocator, and can use SSE2 or SSE4.2 for speed. It handles UTF-8, UTF-16 and UTF-32 with detection, validation and transcoding, and supports JSON Pointer, JSON Schema validation and a relaxed syntax with comments, trailing commas and NaN. Tencent publishes it on GitHub.

## Links

- Website: https://rapidjson.org/
- GitHub: https://github.com/Tencent/rapidjson
- Docs: https://rapidjson.org/

## Problems it solves

- parse large JSON files fast in C++ without pulling in Boost
- stream-parse JSON in C++ without loading the whole document into memory
- validate JSON against a JSON Schema in a C++ program

## Features

- header-only C++ JSON parser and generator
- SAX and DOM APIs
- no dependencies, not even the STL
- SSE2/SSE4.2 acceleration
- UTF-8, UTF-16 and UTF-32 with transcoding
- JSON Pointer and JSON Schema validation

## Trust

Overall: 0.58 out of 1.
Signals: maintenance 0.61, adoption 0.84, momentum 0.60, community 0.94, backing 0.30, extensibility 0.00.

- last commit 26 days ago
- 1 commits in the last 90 days
- latest release v1.1.0 10.3 years ago
- 15.2k GitHub stars
- 229 contributors
- backed by Tencent

## Alternatives

- [simdjson](https://talira.ai/catalog/simdjson-krdev4rz.md): A C++ JSON parser that uses SIMD instructions to parse gigabytes of JSON per second
- [JSON for Modern C++](https://talira.ai/catalog/json-for-modern-c-3jakz8vw.md): What if JSON was part of modern C++?

## Sources

[^1]: https://github.com/Tencent/rapidjson/blob/master/license.txt (checked 27 Nov 2026)
[^2]: https://rapidjson.org/md_doc_schema.html (checked 28 Nov 2026)
