Use js->clj. If you have custom JavaScript types you will need to provide
conversions for these by extending the IEncodeClojure protocol to them.

David


On Tue, Feb 4, 2014 at 4:37 AM, Samuel Richardson <[email protected]> wrote:

> Sorry for a dumb question but I just haven't been able to figure this out
> :(
>
> I've got a JavaScript event that returns an object of data. How do I take
> that object and convert it into a  Clojure map?
>
> I've got no problem going the other way (Clojure map to JS object) but my
> weak google-fu can't do the opposite. What am I missing, or is it even
> possible? (Do I need to stringify the object then parse it back in as JSON
> using js->clj?)
>
> --
> 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.
>

-- 
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