Home - louisphilipmarcoux/rill-json GitHub Wiki
Welcome to the rill-json Wiki!
Welcome to the official wiki for rill-json, a fast, 100% safe, and RFC 8259-compliant JSON parser and serializer, built from scratch in Rust.
The main README provides a quick-start guide. This wiki is for more in-depth documentation for users and contributors.
Core Philosophy
rill-json is built on three key principles:
- Safety: 100% safe Rust. The library uses
#![forbid(unsafe_code)]to guarantee this. - Performance: Designed for high-throughput scenarios. It uses advanced, safe techniques like byte-based lookup tables (LUTs) and
memchrfor SIMD-accelerated string parsing. - Low Memory: The streaming parser is an
Iterator[cite: 2], allowing you to parse gigabyte-sized files with a constant, tiny memory footprint.
Table of Contents
For Users
- Guide: Using the Streaming Parser
- Learn how to use the
Iterator-based parser for common, real-world tasks.
- Learn how to use the
- Guide: Serializing Data (Stringify)
- A guide on using
JsonValueto create your own JSON strings.
- A guide on using
- API Reference
- A detailed breakdown of all public items:
parse_streaming,ParserEvent,JsonValue,JsonNumber, andParseError.
- A detailed breakdown of all public items:
For Contributors
- Architecture Overview
- A deep dive into the parser's design, performance optimizations (LUT &
memchr), and module structure.
- A deep dive into the parser's design, performance optimizations (LUT &
- How to Contribute
- Guidelines for submitting bug reports, feature requests, and pull requests.