I have found the core 'get-in' function to be useful for extracting data from big trees of clojure data structures, perhaps that will help.
I'm still in search of tools that let me get a good sense of *what* to navigate when looking at such trees of data structures from API's and/or data sources I'm unfamiliar with. I find that to be pretty painful, not least because emacs (and maybe the REPL) get seriously compute wedged printing large data structures. An example of this is Amazonica, which will flatten ALL the data in a hierarchy of java data structures from the AWS SDK into one gigantic tree. It's a nifty tool, but the resulting flood of data with one careless query or printed tree fragment has been known to knock out my emacs session for minutes at a time. I wrote a tool to analyze unique key paths in large trees so that I might know, for a given tree, what would be useful to provide as the access path to 'get-in'. However I'm not happy enough with my tool to post it here, it needs some kind of syntax for describing sequences in the tree (since you don't want to see every unique key used to access a sequence of 10,000 things). On Wednesday, August 19, 2015 at 10:18:06 AM UTC-4, Hussein B. wrote: > > Hi, > > I have transformed JSON response into the equivalent data structure using > Cheshire library. > > The result is a huge nested data structure , mostly vectors and maps. It > is actually a tree. > > How to find a property that is nested deep inside the tree ? For example > I'm search for the node that has the value zyx for property "uuid". > > What I'm supposed to use? Something like zipper or walk? or something > simpler is available? > > Thanks for help. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.