jvars 0.3.0

Tools for working with JSON via data paths
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub type Result<T> = core::result::Result<T, Error>;

#[derive(Debug, thiserror::Error)]
#[error("{0}")]
pub enum Error {
    // -- Externals
    Json(#[from] serde_json::Error),
    // -- Internal
    #[error("data path {0}")]
    InvalidDataPath(String),
    #[error("impossible")]
    Impossible(String),
}