tmp-json-parsing

zackbleach 2016-06-01T16:11:23.000108Z

@zackbleach has joined the channel

ghadi 2016-06-01T18:43:33.000109Z

@ghadi has joined the channel

ghadi 2016-06-01T18:43:38.000110Z

@ghadi has left the channel

gowder 2016-06-01T01:44:04.000091Z

@gowder has joined the channel

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)))

2016-06-01T03:13:35.000105Z

@surreal.analysis has joined the channel

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

Thanks! I’ll give that a try

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

No prob!