#json-parser #json #lexer #allocation #comments

simple-json-parser

No allocation JSON key value parser with comment support

5 releases

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

#1421 in Parser implementations

Download history 53/week @ 2025-02-04 32/week @ 2025-02-11 80/week @ 2025-02-18 27/week @ 2025-02-25 11/week @ 2025-03-04 17/week @ 2025-03-11 8/week @ 2025-03-18 1/week @ 2025-03-25 31/week @ 2025-04-08 84/week @ 2025-04-15 5/week @ 2025-04-22 40/week @ 2025-04-29 43/week @ 2025-05-06 21/week @ 2025-05-13

126 downloads per month
Used in 2 crates

MIT license

16KB
344 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