#json-parser #json-key #key-value #allocation #comments

simple-json-parser

No allocation JSON key value parser with comment support

5 releases

new 0.0.5 Jan 13, 2025
0.0.4 Dec 20, 2024
0.0.3 May 21, 2024
0.0.2 Mar 9, 2024
0.0.1 Oct 18, 2023

#845 in Parser implementations

Download history 22/week @ 2024-09-23 71/week @ 2024-09-30 5/week @ 2024-10-07 10/week @ 2024-11-04 11/week @ 2024-11-11 39/week @ 2024-11-25 25/week @ 2024-12-09 111/week @ 2024-12-16

136 downloads per month
Used in 2 crates

MIT license

14KB
314 lines

JSON parser/lexer

lines of code crates.io badge docs.rs badge

Features

  • Under < 200 LOC Rust lexer
  • No dependencies
  • Visiting / callback based API (avoids allocations)
  • Handles single and multiline comments in JSON

See examples and tests for usage.

No runtime deps