2013/5/7 Hawkeye02 <bryan.d.hender...@gmail.com> > I can't get the data from inside the JSON arrays from Clojure. > Specifically, I looking to get the data from the "currently" array taken > from this Dark Sky data:
Sorry but your JSON document example does not have arrays. Do you mean nested objects (maps)? Parsed JSON documents are returned as Clojure maps. In your example, the issue seems to be that keys in the map you have a strings but you are trying to access them as keywords. clojure.core/get-in is what I'd use instead [3]. And please don't use clojure.contrib.* stuff. Monolithic contrib has been deprecated a couple of years ago and is no longer maintained. Use Cheshire [1] or data.json (I don't recommend this one) [2]. Finally, take a look at http://clojure-doc.org if you need a free beginner documentation resource. 1. http://github.com/dakrone/cheshire 2. http://github.com/clojure/data.json 3. http://clojuredocs.org/clojure_core/clojure.core/get-in -- MK http://github.com/michaelklishin http://twitter.com/michaelklishin -- -- 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/groups/opt_out.