Function flats::flatten[][src]

pub fn flatten<S>(nested: S) -> Result<BTreeMap<String, Scalar>> where
    S: Serialize

Flattens nested structures into a one dimensional map

This first serializes the structure to a serde_json::Value which may fail, hence the Result type.