Tag Info

New answers tagged

3

The following query will return the desired result: h[Select[AbsoluteTime@#["basicData", "dateMMa"] < AbsoluteTime@{2014,10,8,1,0,0} &]] (* {<|"basicData" -> <|"ID" -> "1008", "dateMMa" -> {2014, 10, 8, 0, 0, 0.}|>, ... |> *) The vital construction in this solution is #["basicData", "dateMMa"]. It references the nested key ...


0

There is another way to get the desired output using /. with this 2-steps approach : rdata //. p : {__Rule} :> foo @@ p /. foo -> Association (* <|"a" -> <|"b" -> 1, "c" -> {7, 8, 9}|>, "d" -> 3|> *) Explanations First step Using //. we find at all levels in rdata the occurrences of the target structure {__Rule} that we ...



Top 50 recent answers are included