Expand description
A simple JSON parser using parser combinators (Educational purposes)
§Example
let json = r#"{"name": "yarso", "awesome": true}"#;
let result = jsnpar::parse(json);Returns a Result with the parsed value or an error message (Result<JsonValue, String>).
The JsonValue type is a simple enum that represents the JSON value.
§Warning
This crate is not intended to be used in production, it is only for educational purposes.
Enums§
- Json
Value - Represents a JSON value.
Functions§
- parse
- Parse a JSON string into a
JsonValuetype.