Alan, I am exploring what option to use for exchanging data between my server and client. EDN and Cljson are two of the options. What are the pros / cons of using cljson over edn ?
What was the motive in creating this library ? Thanks, Murtaza On Tuesday, June 25, 2013 12:58:11 AM UTC+5:30, Alan Dipert wrote: > > Glad you enjoy! And yes, totally into the cljson->clj [map data] arity. > Alan > > On Monday, June 24, 2013 1:50:00 PM UTC-4, Thomas Heller wrote: >> >> Hey, >> >> this looks pretty sweet! I stuck with EDN for now but its way too slow, >> so I'm gonna give this a shot. >> >> One thing: I'm don't think its the best idea to fall back to >> *default-data-readers*, would you be open to adding a second argument to >> 'cljson->clj which takes a map specifying readers? eg. (cljson->clj >> {:readers {"my.ns/test" my-reader-fn}} json-string), basically the same API >> as clojure.edn/read? >> >> Thanks, >> /thomas >> >> >> >> On Monday, June 24, 2013 7:23:26 PM UTC+2, Alan Dipert wrote: >>> >>> Hi all, >>> I'm pleased to announce the release of cljson 1.0.0, a Clojure and >>> ClojureScript data serialization library designed for maximal Clojure data >>> deserialization speed in the browser: >>> https://github.com/tailrecursion/cljson. cljson was designed to take >>> advantage of the native JSON parsing facilities most browsers provide. >>> >>> cljson provides clj->cljson and cljson->clj functions on both platforms. >>> cljson->clj on ClojureScript is roughly 5-6x faster than >>> cljs.reader/read-string, and cljson data is roughly 10% fatter on the wire >>> than EDN. >>> >>> Thanks in advance for your feedback and contributions! >>> >>> Alan >>> >> -- -- 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.