Module jq_selection

Source
Expand description

A module for performing JQ filter selections on JSON data.

Enable feature jq-selection to use this module.

This module provides functionality to parse, compile and execute JQ filter expressions against JSON data. It internally caches compiled filters to avoid recompilation overhead.

§Examples


let mut jq = JqSelection::new();
let data = serde_json::json!({"name": "Jane", "age": 25});
let results = jq.select(".name", data).unwrap();

assert_eq!(results, serde_json::json!("Jane"));

Structs§

JqSelection
A struct that holds JQ filter selections