Vibeleaderboard
Index / tool
Visit nihilai-collective.net
Category
Developer Tools
Rank
No. 2436Tools index
Type
TOOL
Date

About

Jsonifier is a C++23 library for parsing, serializing, validating, prettifying, and minifying JSON, compliant with RFC8259. It uses SIMD instructions and compile-time perfect hash-maps for key lookup, so parsing stays fast even when keys arrive out of order. The project says it is hardened against malformed input with truncation tests, conformance corpora, and AddressSanitizer and UndefinedBehaviorSanitizer runs.

At a glance

Jsonifier is a C++23 library that parses JSON into your own structs, serializes them back, and validates, prettifies and minifies JSON text. It uses SIMD code for x64 or ARM64 CPUs plus key lookup tables built at compile time, so keys in any order parse without a slowdown. Malformed input stops at the first bad byte, and every parse checks UTF-8 by default.

Good fit

C++ developers on a modern toolchain who move a lot of JSON through typed structs and care about throughput, such as services reading API payloads or NDJSON streams. It also suits code that needs only a few fields from large documents, through partial reading, or that must handle unknown shapes with the schema-free generic parser and JSON Pointers.

Consider something else when

Your project cannot move to C++23 (GCC 14+, Clang 18+ or MSVC 19.40+) or must target a CPU other than x64 or ARM64. Also skip it if writing a jsonifier::core specialization that lists the members of every typed struct is more setup than your JSON needs.

Start here

Run vcpkg install jsonifier, or add it with CMake FetchContent and link Jsonifier::Jsonifier. Include only <jsonifier>, write a jsonifier::core specialization for one struct, then call parseJson(person, json) on a jsonifier::jsonifier_core<> and serializeJson to write it back. Check the parser's error vector to confirm the parse succeeded.

Cost and requirements

Free under the MIT licence (copyright Nihilai Collective Corp), so it can go into closed-source and commercial code as long as the licence notice is kept. Requires a C++23 compiler (MSVC 2022 v19.40+, GCC 14+ or Clang 18+), CMake 3.28 or later, and an x64 or ARM64 CPU with NEON or SVE2. The repository says each build compiles one SIMD tier chosen at configure time, so build for the lowest tier you ship to (-DJSONIFIER_SIMD_TIER=AVX2); the project page still describes runtime x64 tier dispatch. Cross-compiling means setting JSONIFIER_CPU_INSTRUCTIONS in CMake.

Limits to know

The SVE2 backend for ARM is experimental and still mishandles a few parsing cases, so NEON is the recommended ARM path. Android builds are best-effort and not tested in CI. Speed claims, including wins over Glaze and simdjson, come from the project's own benchmark harness and papers. The FetchContent example tracks the main branch, so pin a commit for repeatable builds. Nesting is capped at 1024 levels by default, and the core starts with a 1MB scratch buffer that you resize through a template parameter for very large documents.

Tags

cppjsonsimdparserserializationperformance

Media

Jsonifier

Comments (0)

No comments yet

Editorially curated, with community endorsements as a secondary signal. Corrections welcome.