Skip to main content

extract_strings

Function extract_strings 

Source
pub fn extract_strings(
    lines: &[String],
    path_expr: &str,
) -> Result<Vec<Option<String>>, String>
Expand description

Returns per-line extracted strings. None means the line should be excluded from matching (JSON parse failure, path miss, or non-string value). The returned vector has the same length as lines, so callers can index it directly alongside the raw lines.