flatdict icon indicating copy to clipboard operation
flatdict copied to clipboard

New key name same as flattened key

Open georgestanley opened this issue 4 years ago • 0 comments

This is an Enhancement suggestion that I thought would be useful. Currently, the new key name is a combination of parent-key + delimiter + child-key. However, there can be a special case when I would like the new key name told be only the child-key.

E.g. {'foo': {'bar': 'baz', 'qux': 'corge'} } should be outputted as {'bar': 'baz', 'qux': 'corge'} instead of {'foo:bar': 'baz', 'foo:qux': 'corge'}

georgestanley avatar Feb 15 '22 21:02 georgestanley