Skip to main content

flat_leaves

Function flat_leaves 

Source
pub fn flat_leaves(key: String, value: &Value, out: &mut Vec<(String, Value)>)
Expand description

The json-flat leaves of value stored at key: objects descend into key.<member>, arrays into key.<index>, and nulls produce nothing.

json.rs uses this too, so the collision check in normalize_metrics sees exactly the keys the flat output will hold.