pub fn read_json<T>(path: &Path, max_bytes: u64) -> Result<T, PersistenceError>where
T: DeserializeOwned,Expand description
Read one regular no-follow JSON file within an explicit byte limit.
ยงErrors
Rejects unsafe files, excessive bytes, invalid JSON and filesystem failures.