| Crates.io | vals_json_parser |
| lib.rs | vals_json_parser |
| version | 0.1.0 |
| created_at | 2025-11-13 07:54:13.058035+00 |
| updated_at | 2025-11-13 07:54:13.058035+00 |
| description | A 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 | |
| id | 1930635 |
| size | 30,930 |
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.
The input to this parser is a JSON-formatted string, for example:
{
"name": "Valentyn",
"age": 69,
"skills": ["Rust", "Java"],
"active": true
}
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" }