flatten-object Simple helper to turn nested objects into a single level object. Nested objects are converted to a string representation of a path