Function read_json_file
Source pub fn read_json_file<T>(path: &Path) -> Result<T>
Expand description
Reads and parses a JSON file.
§Arguments
path - The path to the JSON file
§Type Parameters
T - The type to deserialize into (must implement DeserializeOwned)
§Returns
The parsed JSON data
§Errors
Returns an error if the file cannot be read or parsed