Skip to main content

read_json

Function read_json 

Source
pub fn read_json<T: DeserializeOwned>(path: &Path) -> Result<Option<T>>
Expand description

Read and deserialize JSON from path. Returns Ok(None) if the file does not exist.