fn read_json<P>(path: P) -> Result<serde_json::Value>
    where P: AsRef<Path>
{
    let contents = fs::read_to_string(path)?;
    serde_json::from_str(&contents).map_err(|e| e.into())
}
/// Read a file into a JSON value
Read a file into a JSON value
Read a file into a JSON value
fn read_json<P>(path: P) -> Result<serde_json::Value>
    where P: AsRef<Path>
{
    let contents = fs::read_to_string(path)?;
    serde_json::from_str(&contents).map_err(|e| e.into())
}
fn read_json < P > ( path : P ) -> Result < serde_json :: Value > where P : AsRef < Path > { let contents = fs :: read_to_string ( path ) ? ; serde_json :: from_str ( & contents ) . map_err ( | e | e . into ( ) ) }
Read a file into a JSON value
Read a file into a JSON value
path
P