Skip to main content

process_in_memory

Function process_in_memory 

Source
pub fn process_in_memory(
    input: &str,
    filter_keys: &[String],
    processor: &'_ mut dyn FnMut(TypedValue, ValueType, &str) -> Result<(TypedValue, ValueType, ProcessHandling), Box<dyn Error>>,
) -> Result<Value, Box<dyn Error>>
Expand description

Read a JSON file, apply processor to every matching scalar value, and return the result in memory. filter_keys is a list of dot-notation key paths to restrict processing to; empty means all values.