Skip to content

Instantly share code, notes, and snippets.

Created June 25, 2011 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1046871 to your computer and use it in GitHub Desktop.
Save anonymous/1046871 to your computer and use it in GitHub Desktop.
json
test=> (class j)
clojure.lang.PersistentVector
test=> (class (first j))
clojure.lang.PersistentHashMap
test=> (keys (first j))
(:timestamp :instance :entityId :producer :entityName :properties :type :id :eventClass :category)
test=> (class (:properties (first j)))
clojure.lang.PersistentVector
test=> (count (:properties (first j)))
274
test=> (take 1 (:properties (first j)))
({:name "blah", :newValue "aaaa", :oldValue "bbbb"})
test=> (class (take 1 (:properties (first j))))
clojure.lang.LazySeq
test=> (pprint (take 1 (:properties (first j))))
({:name "blah",
:newValue "aaaa",
:oldValue "bbbb"})
nil
test=> (:name (take 1 (:properties (first j))))
nil
test=> (class (take 1 (:properties (first j))))
clojure.lang.LazySeq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment