Skip to main content

Module json_path

Module json_path 

Source
Expand description

JSONPath evaluator and path mapper for frame selection and field extraction

Inspired by ai-lib’s PathMapper implementation, with support for:

  • Nested path access (e.g., “a.b.c”)
  • Array indexing (e.g., “choices[0].delta.content”)
  • Condition evaluation (exists, ==, !=, in, &&, ||, >, <, >=, <=)
  • Regular expression matching

Structs§

JsonPathEvaluator
JSONPath evaluator for condition matching Supports: exists, ==, !=, in, &&, ||, >, <, >=, <=, regex
PathMapper
Path mapper for extracting and setting values in JSON using dot-notation paths

Enums§

PathMapperError
Path mapper error