Skip to content

How to decode an http/get transit json response to a edn? #103

@viebel

Description

@viebel

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:

(-> json
      clj->js
      js/JSON.stringify
      (transit-decode :json nil))

But I'm sure there is a better way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions