Skip to main content

json_pointer_to_route

Function json_pointer_to_route 

Source
pub fn json_pointer_to_route(path: &str) -> Route<'static>
Expand description

Convert an rsigma JSON-pointer path (e.g. “/tags/2”, “/detection/sel/CommandLine|contains”) into a yamlpath::Route with owned components.

JSON-pointer segments that parse as usize become Index, others become Key. Leading “/” is stripped; an empty/root path returns an empty route.