simdjson is a C++ library that parses and validates JSON using SIMD instructions. It targets 64-bit systems and is linked into servers and runtimes that handle large JSON workloads.
Overview
simdjson is a C++ JSON library built around vectorized parsing and reduced branching so single-core throughput can reach gigabytes per second on common CPUs. It performs full JSON and UTF-8 validation while parsing, and can minify, validate text, and handle newline-delimited streams.
Consumers integrate by compiling simdjson.h and simdjson.cpp alongside application code, or by pulling packaged builds. At runtime it picks a CPU-specific parser implementation without manual configuration. APIs cover on-demand traversal, building JSON output, compile-time parsing on newer C++ standards, and multithreaded NDJSON handling.
The project documents performance comparisons against other C++ parsers and publishes benchmark reproduction steps. Downstream adopters named in project materials include database engines, language runtimes, and analytics stacks that need repetitive JSON decoding.
Bindings and ports exist for other languages, while companion repositories extend serialization and tooling. Research papers and peer-reviewed write-ups describe the on-demand frontend design and UTF-8 validation approach underlying the implementation.
Key features
- Runtime CPU-specific parser selection
- On-demand JSON traversal API
- Full JSON and UTF-8 validation
- JSON minify and NDJSON support
- C++ struct mapping with reflection
- Single-header plus cpp integration
- Multithreaded NDJSON parsing
- Bindings for other languages
Use cases
- High-volume API response parsing
- Analytics pipelines ingesting JSON logs
- Database and query engine internals
- Validating untrusted JSON payloads
- Serializing native C++ structures to JSON