pub fn evaluate_expr_value(
value: &ExprValue,
ctx: &HandlerContext<'_>,
) -> Result<Value, ExecutionError>Expand description
Evaluate an ExprValue to a JSON value.
The function receives pre-parsed expressions and performs NO string
parsing. All ${...} patterns have already been parsed by the resolver.
ยงExamples
let expr_value = parse_expr_value(&json!({"message": "${param.name}"}));
let result = evaluate_expr_value(&expr_value, &ctx)?;
// result is a serde_json::Value with expressions evaluated