Skip to content

A few classes for extremely fast json parsing/serializing in modern C++. Possibly the fastest json parser in C++. Possibly the fastest json serializer in C++.

License

Notifications You must be signed in to change notification settings

Mu-L/Jsonifier

 
 

Repository files navigation

Jsonifier

Commit Activity Lines of Code

Jsonifier is fully RFC8259 compliant.

A few classes for validating, serializing, parsing, prettifying, and minifying objects into/from JSON strings - very rapidly.

It achieves this through the usage of simd-instructions as well as compile-time hash-maps for the keys of the data being parsed.

Jsonifier doesn’t just parse JSON — it survives it. Every build is battle-hardened against malformed input by a custom fuzz-simulation test that systematically corrupts a 2000+ character JSON string one byte at a time, generating thousands of progressively invalid permutations. Each variant is force-fed through both parsing and schema validation. The result? Zero crashes. Zero memory violations. Zero undefined behavior. Jsonifier passes this gauntlet under UBSAN and ASAN with full memory and bounds safety — proving it’s not just fast, but ferociously robust in the face of chaos.


Compiler Support


MSVC GCC CLANG

Operating System Support


Windows Linux Mac

Usage Guide:


About

A few classes for extremely fast json parsing/serializing in modern C++. Possibly the fastest json parser in C++. Possibly the fastest json serializer in C++.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 96.3%
  • CMake 1.6%
  • Python 1.2%
  • Other 0.9%