tmp-json-parsing

gowder 2016-06-01T01:49:00.000092Z

Wow that's a super nested sequence

gowder 2016-06-01T01:50:31.000093Z

One thing to do in order to get rid of the nesting as a first step, if that sequence of vectors is stored associated with the symbol items, is (vec (flatten items))

gowder 2016-06-01T01:55:48.000103Z

And then you just have a vector of maps, and you can pluck out keys from them as you want

gowder 2016-06-01T02:14:58.000104Z

For example, if you want every map where "status" is the field you can use (filter #(= "status" (:field %)) (vec (flatten items)))

dmbennett 2016-06-01T03:32:08.000106Z

Thanks! I’ll give that a try

😀 1
gowder 2016-06-01T03:57:10.000107Z

No prob!