read_json_string_optimized

Function read_json_string_optimized 

Source
pub fn read_json_string_optimized<P>(path: P) -> Result<String>
where P: AsRef<Path>,
Expand description

Read JSON from file as string with buffered I/O (optimized)

Reads the entire file into a string buffer, useful when you need both the raw JSON string and the deserialized data.

ยงExamples

use cli_testing_specialist::utils::read_json_string_optimized;

let json_string = read_json_string_optimized("input.json")?;