Hi , Im not an experienced cljs dev so sorry if this is a daft question....

I have a map coming into my client via sente.  The map begins like {:100 {:id 
"100" :point { ....

I dont seem to be able to convert this into a valid cljs map, the reader 
complains about 0 not being a valid key.  However a map like  {:abc {:id "abc" 
{ .... is working fine, that is 

(cljs.reader/read-string (second ev-msg )) produces the required map.

In my test case on the server Im injecting the map like : (pr-str {:abc {:id 
"abc" :point {...

Is it the case that :100 is not a valid keyword in cljs?  It seems to work fine 
on the clj side ie I can serialise and deserialise the map as edn in the repl.  
Why would read-string not like the key when its a number?

[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2850"]

Thanks
Pete

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to