packedjson

packedjson is an alternative Nim implementation for JSON. The JSON is essentially kept as a single string in order to save memory over a more traditional tree representation.

Pure Nim score 30/100 · tests present · docs generated

Summary

Latest Version Unknown
License MIT
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

Tags

Installation

nimble install packedjson
choosenim install packedjson
git clone https://github.com/Araq/packedjson

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
packedjson - - - - - -

Source

Repository https://github.com/Araq/packedjson
Homepage https://github.com/Araq/packedjson
Documentation View Documentation
Registry Source nimble_official

README

packedjson

packedjson is an alternative Nim implementation for JSON. The JSON is essentially kept as a single string in order to save memory over a more traditional tree representation.

The API is mostly compatible with the stdlib's json.nim module, some features have been cut though.

To compile the benchmark, run these commands:

nim c -r bench\generator

nim c -r -d:release bench\benchmark.nim
nim c -r -d:release -d:useStdlib benchmark.nim

On my machine, I got these results:

packed json:  used Mem: 94.06MiB time: 2.622s
stdlib json:  used Mem: 1.277GiB time: 3.759s

packedjson is now being used in production and seems to be reasonably stable.