Skip to main content

jsonpath_query

Function jsonpath_query 

Source
pub fn jsonpath_query<'a>(root: &'a JsonValue, path: &str) -> Vec<&'a JsonValue>
Expand description

Evaluate a basic JSONPath expression against a JSON value.

Supported syntax:

  • $ — root document
  • $.a.b — nested field access
  • $[n] — array index
  • $.* or $[*] — all children
  • Combinations: $.a[0].b