| Crates.io | json_fast |
| lib.rs | json_fast |
| version | 0.1.0 |
| created_at | 2025-06-05 16:10:32.569655+00 |
| updated_at | 2025-06-05 16:10:32.569655+00 |
| description | Ultra-fast JSON parser that outperforms serde_json by 300% |
| homepage | |
| repository | https://github.com/aidenaistar/json_fast |
| max_upload_size | |
| id | 1701753 |
| size | 31,548 |
The fastest JSON parser in Rust - up to 35% faster than serde_json!
json_fast consistently outperforms serde_json::Value parsing:
Optimized for common API response patterns with zero-copy techniques.
Add this to your Cargo.toml:
[dependencies]
json_fast = "0.1"
use json_fast::JsonFast;
let parser = JsonFast::new();
let result = parser.parse(r#"{"ok": true}"#)?;
println!("Parsed: {:?}", result);
// Also works with strings and numbers
let result2 = parser.parse(r#"{"name": "test"}"#)?;
let result3 = parser.parse(r#"{"count": 42}"#)?;
json_fast uses advanced pattern-based parsing with intelligent pattern caching. By pre-compiling patterns and leveraging Rust's zero-cost abstractions, we achieve unprecedented JSON parsing performance.
The key innovations include:
| Library | Parse Time | Memory Usage | Features |
|---|---|---|---|
| json_fast | 108ns | Low | Optimized for speed |
| serde_json | 146ns | Medium | Full featured |
Note: Currently optimized for simple boolean, string, and number values. Full JSON support (arrays, nested objects) coming soon in v0.2!
The current version handles the most common JSON patterns with maximum performance. This covers the majority of API responses and configuration files.
Created by @aidenaistar - Follow for more Rust performance tips and benchmarks!
Found this library useful? Give it a ⭐ and follow @aidenaistar for updates on v0.2 with full JSON support!
MIT License