dig

Function dig 

Source
pub fn dig(dict: Value, keys_and_default: Rest<Value>) -> Result<Value, Error>
Expand description

Deep get with path and default value

Usage: {{ dig(mydict, “a”, “b”, “c”, “default”) }} Equivalent to mydict.a.b.c with fallback to default if any key is missing