Skip to main content

apply_input_path

Function apply_input_path 

Source
pub fn apply_input_path(
    input: &Value,
    path: Option<&str>,
) -> Result<Value, StatesError>
Expand description

Apply InputPath to extract a subset of the raw input.

  • None or Some("$") -> return input unchanged
  • Some("null") handled at call site (pass {})
  • any other JSONPath -> the selected value; a definite path that matches nothing fails the state with States.Runtime, as on AWS