jsnpar 0.1.1

Rust JSON parser implementation using parser combinators.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::collections::HashMap;

/// Represents a JSON value.
/// - Null
/// - Boolean(bool)
/// - Number(f64)
/// - String(String)
/// - Array(Vec<JsonValue>)
/// - Object(HashMap<String, JsonValue>)
#[derive(Debug, Clone, PartialEq)]
pub enum JsonValue {
    Null,
    Bool(bool),
    Number(f64),
    String(String),
    Array(Vec<JsonValue>),
    Object(HashMap<String, JsonValue>),
}