#json-parser #json-key #key-value #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

#852 in Parser implementations

Download history 44/week @ 2024-10-02 4/week @ 2024-10-09 4/week @ 2024-10-30 8/week @ 2024-11-06 9/week @ 2024-11-13 4/week @ 2024-11-20 35/week @ 2024-11-27 4/week @ 2024-12-04 23/week @ 2024-12-11 109/week @ 2024-12-18 84/week @ 2025-01-08 34/week @ 2025-01-15

118 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