Trait dvb::prelude::EasyJson
[−]
[src]
pub trait EasyJson { fn access<'a>(&'a self, path: &'a str) -> Option<&'a JsonValue>; fn get<'a>(json: &'a JsonValue, key: &str) -> Option<&'a JsonValue> { ... } fn get_path<'a>(json: &'a JsonValue, path: &[&str]) -> Option<&'a JsonValue> { ... } }
Required Methods
Provided Methods
fn get<'a>(json: &'a JsonValue, key: &str) -> Option<&'a JsonValue>
Wrapper around get_path()
.
Splits path string
and replaces JsonValue::Null
and JsonValue::BadValue
.
fn get_path<'a>(json: &'a JsonValue, path: &[&str]) -> Option<&'a JsonValue>
Returns content at path
in the json document.
Implementors
impl EasyJson for Result<JsonValue>