While writing JSON is fast, reading it back into a Clojure map is
slow; even with clj-json, based on Jackson.
Here's an idea: use Jackson's ObjectMapper. The following line
extracts a Java Map:
Map<String,Object> userData = mapper.readValue(new File("user.json"),
Map.class)
(from http://wiki.fasterxml.com/JacksonInFiveMinutes)
-- how do we translate it into Clojure?
Of course, the most interesting idea is to define the Clojure's map
directly for ObjectMapper -- possible?
-- Alexy
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en