Expand description
JSnom
A small and ergonomic parser library for JSON.
All parsers provided silently discard any of the string remaining after parser finishes.
Example
use jsnom::JsonValue;
assert_eq!(
JsonValue::from_str("[null, null, true]"),
Ok(JsonValue::Array(vec![
JsonValue::Null,
JsonValue::Null,
JsonValue::Bool(true)
]))
)
Structs
The error type returned from parsers. It is essentially a wrapper around
nom::error::VerboseError
using a different std::fmt::Display
.
Enums
Enum representing a parsed JSON input.
Functions
Parse a JsonValue::Array
from an input string.
Parse a JsonValue::Bool
from an input string.
Parse a JsonValue::Null
from an input string.
Parse a JsonValue::Number
from an input string.
Parse a JsonValue::Object
from an input string.
Parse a JsonValue::String
from an input string.