pub fn flatten( stats_struct: &MonitordStats, key_prefix: &String, ) -> Result<String, Error>
Take the standard returned structs and move all to a flat JSON str