Skip to main content

read_json

Function read_json 

Source
pub fn read_json<T>(path: &Path, max_bytes: u64) -> Result<T, PersistenceError>
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.