tailrecursion / cljson

Clojure/ClojureScript library for accelerated browser data deserialization
62 stars 4 forks source link

Boolean encoding is missing #6

Closed si14 closed 10 years ago

si14 commented 10 years ago

It seems that there is no support of boolean values right now, am I right? Booleans are encoded and decoded simply as strings "true" and "false".

micha commented 10 years ago

I get the following:

tailrecursion.cljson=> (clj->cljson [true false "asdf"])
"[\"v\",true,false,\"asdf\"]"
tailrecursion.cljson=> (cljson->clj *1)
[true false "asdf"]
si14 commented 10 years ago

I'm sorry, I forgot to mention that this was CLJS.

micha commented 10 years ago

Fixed in 4de3f56c9cddcb54ee4bb8931b52714c8c490ac5. Bumped version to 1.0.6.

si14 commented 10 years ago

Thank you!