vals_json_parser

Crates.iovals_json_parser
lib.rsvals_json_parser
version0.1.0
created_at2025-11-13 07:54:13.058035+00
updated_at2025-11-13 07:54:13.058035+00
descriptionA Rust project that implements a JSON parser using the Pest parsing library. It reads JSON text input and converts it into a structured internal representation.
homepage
repository
max_upload_size
id1930635
size30,930
Valentyn Radchenko (valentyn-radchenko)

documentation

README

json_parser

Description

json_parser is a Rust project that implements a JSON parser using the Pest parsing library.
It reads JSON text input (objects, arrays, strings, numbers, booleans, and null values) and converts it into a structured internal representation Abstract Syntax Tree (AST).

The parser can validate, analyze, and transform JSON data within Rust applications.

Technical Description

What Is Being Parsed

The input to this parser is a JSON-formatted string, for example:

{
  "name": "Valentyn",
  "age": 69,
  "skills": ["Rust", "Java"],
  "active": true
}

JSON Grammar Overview

file     = { object | array }
object   = { "{" ~ pair* ~ "}" }
pair     = { string ~ ":" ~ value }
array    = { "[" ~ value* ~ "]" }
value    = { object | array | string | number | boolean | null }
string   = { "\"" ~ inner ~ "\"" }
number   = { "-"? ~ int ~ frac? ~ exp? }
boolean  = { "true" | "false" }
null     = { "null" }
Commit count: 0

cargo fmt