Skip to content

henrypickler/rust-json-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Parser

This is a small, educational JSON parser written in Rust.

  • Purpose: my very first JSON parser implementation and my first finished Rust program, built as a study project to learn parsing and Rust.
  • Status: proof-of-concept / learning project.

Features

  • Supports parsing JSON objects and arrays.
  • Recognizes strings, numbers (decimal and negative), booleans (true / false) and null.
  • Returns a simple AST (Abstract Syntax Tree) represented by the JsonType enum.

Limitations

  • No support for escaped characters inside strings (e.g. \", \\, \n).
  • Scientific notation for numbers (exponents e, E) is not implemented and will panic if encountered.
  • Not meant for production use, it is a learning exercise and intentionally minimal.

About

My first attempt at programming a JSON parser using rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages