Skip to main content

read_json

Function read_json 

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

Read a JSON file and return it as a generic serde_json::Value.

§Errors

Returns an error if the file can’t be read or contains invalid JSON.