Hi,
Reviewing the code, I found that there is issue at
|
current_location[key_name][level] = value if is_terminal_key else {} |
should be
current_location[key_name][level - 1] = value if is_terminal_key else {} since the level is updated before and current_location is not assigned.
Can you look into this :)
Thank you.