(json_dict, sep=".")
return flatted
flat a nested json-like dict. this function make shadow copy.
flat a nested json-like dict. this function make shadow copy.
flat a nested json - like dict . this function make shadow copy .
def flat_nested_json_dict(json_dict, sep=".") -> dict:
    """flat a nested json-like dict. this function make shadow copy.
    """
    flatted = {}
    for k, v in json_dict.items():
        if isinstance(v, dict):
            _flat_nested_json_dict(v, flatted, sep, k)
        else:
            flatted[k] = v
    return flatted
def flat_nested_json_dict ( json_dict , sep = "." ) -> dict : flatted = { } for k , v in json_dict . items ( ) : if isinstance ( v , dict ) : _flat_nested_json_dict ( v , flatted , sep , k ) else : flatted [ k ] = v return flatted