read_json_from_file

Function read_json_from_file 

Source
pub fn read_json_from_file<T: DeserializeOwned>() -> Result<T, Box<dyn Error>>
Expand description

Reads JSON data from file with shared file locking.

This function:

  1. Reads and deserializes the JSON data

This prevents reading partially written data during concurrent access.