Skip to content
Single-Allocation JSON Parser
C++ Python Shell
Find file
New pull request
Latest commit 791799a @chadaustin update tests

Single-Allocation JSON Parser

sajson is an in-place, DOM-style JSON parser written in C++. Given a JSON document, it allocates and fills a contiguous parse tree of size input_length * sizeof(size_t).

That is, on 32-bit platforms, sajson allocates 4 bytes per input character. On 64-bit platforms, sajson allocates 8 bytes per input character.

Its performance is similar to rapidjson and vjson.

Implementation details are available at:

sajson does not support UTF-16 or UTF-32. To use sajson on non-UTF-8 documents, transcode to UTF-8 first.

Something went wrong with that request. Please try again.