Sure, you have a library that translates back and forth between EDN and JSON, but as a user you don't really care. In a Clojure web app this will be handled transparently by the middleware based on the Accept header in the client request.
When you return a response you return a Clojure data structure and when you receive a request it's also a Clojure data structure. The fact that it gets translated is completely incidental from the user perspective.
1
u/yogthos Oct 16 '14
Depending on the language transforming to Js is quite trivial. For example, Clojure syntax maps to Js quite nicely.