Skip to main content

json_doc_load_file

Function json_doc_load_file 

Source
pub fn json_doc_load_file(path: &Path) -> Option<Value>
Expand description

Loads a JSON document from disk with size and object-depth guards.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::json_doc_load_file can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::json_doc_load_file.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::json_doc_load_file(std::path::Path::new("fixture.json"));