yberreby / rust-json-parser

A JSON parser written in Rust as a learning project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

json-parser

Build Status

Warning: this is a learning project. You should probably use serde instead.

A JSON parser written in Rust as a learning project. Inspired by Douglas Crockford's JSON parser.

I'm doing this for fun, and to teach myself parser design.

Things left to implement:

Benchmark

test json_parser_large ... bench:       6,518 ns/iter (+/- 701)
test serde_json_large  ... bench:      17,288 ns/iter (+/- 803)

Note: considering json_parser still misses important features like exponentials and escapes, it's not very surprising that it's faster than serde_json.

About

A JSON parser written in Rust as a learning project


Languages

Language:Rust 100.0%