What would be the best way to condition the nested fields of a complex nested structure, for example ...
{ :aa {:a "a_val",:b "b_val"}, :qq {:abc { :x1 {:x "abc",:u "ee"}, :x2 {:y "abc",:i "ee"}, :x3 {:x "abc",:i "ee"} } }, :ww {:xyz { :y1 {:x "abc",:u "ee"}, :y2 {:y "abc",:i "0"}, :y3 {:x "abc",:i "ee"} } } }
I want to check if the "i" part exists and has the value "0" in each of aa, qq and ww and, depending on this, exclude (or perform any operation) on aa, qq and ww. For example, if "ww" has "i" = "0" in this position, then get a card as shown below
{ :ww {:xyz { :y1 {:x "abc",:u "ee"}, :y2 {:y "abc",:i "0"}, :y3 {:x "abc",:i "ee"} } } }
source share