Skip to main content

Crate jsnpar

Crate jsnpar 

Source
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§

JsonValue
Represents a JSON value.

Functions§

parse
Parse a JSON string into a JsonValue type.