Crate json

Source
Expand description

Json parser

§Example

use json::Json;

let j = Json::deserialize(r#"{
    "array" : [ 1, 2, "3", null ],
    "true" : true,
    "nested" : {
        "inner" : []
    }
}"#).unwrap();

let Json::Object(map) = j else { panic!() };
assert!(
    matches!(
        map.get("true"),
        Some(Json::True)));

Macros§

json
Builds a Json object

Structs§

JsonConfig
Configures the JSON parser

Enums§

Json
Represents a JSON object