I want to extract only the deepest level of association in a nested associations.
An example of input data is
<|a -> 1, b -> <|x -> p, y -> <|z -> 3, w -> "a"|>|>|>
and I need to get
<|a -> 1, x -> p, z -> 3, w -> "a"|>
I have seen several questions similar to this but I have not been able to solve the problem.
What is the best way to do this?
Thanks!