Skip to main content

interpolate_value

Function interpolate_value 

Source
pub fn interpolate_value(
    value: &Value,
    event_data: Option<&Value>,
) -> Result<Value, InterpolationError>
Expand description

Substitute every {{event.…}} reference in a JSON value tree.

Object keys are interpolated too, always as text (a JSON key must be a string). Values with no references are returned unchanged.