You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
viebel
changed the title
How to decode an http/get transit json response to a edn
How to decode an http/get transit json response to a edn?
Sep 24, 2016
@viebel I'm on holiday at the moment and AFK most of the time. What do you mean by " I need to convert it to edn"? An EDN string? I guess you want Clojure maps and vectors. cljs-http should decode transit json responses automatically, provided you set the "Content-Type" header to "application/transit+json".
You guessed right. I want a clojurescript object. The problem is that I cannot modify the "Content-Type" header. Is there a way to tell receive the string as is?
My response is in transit json and I need to convert it to edn.
cljs-http automatically converts the json into a cljs object.
So for the moment, I am doing:
But I'm sure there is a better way.
The text was updated successfully, but these errors were encountered: