Question about transit-cljs and keywordizing json

132 views
Skip to first unread message

Shaun Mahood

unread,
Mar 20, 2015, 3:46:39 PM3/20/15
to clojur...@googlegroups.com
I'm pretty new to clojurescript and am having some issues implementing transit-cljs to read in a JSON api call.

What I'm looking for is the equivalent of
(js->clj parsed-json-data :keywordize-keys true)

I've got the transit reader working, using
(let [r t/reader :json)] (t/read r json-data))

Any ideas?

Thanks

David Nolen

unread,
Mar 20, 2015, 7:46:58 PM3/20/15
to clojur...@googlegroups.com
transit is not really intended for the consumption of plain JSON. There's not a good way to this right now.

David


--
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 clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Shaun Mahood

unread,
Mar 21, 2015, 12:54:01 PM3/21/15
to clojur...@googlegroups.com
Ok, thanks David.
Reply all
Reply to author
Forward
0 new messages