When working with JavaScript, one can convert a JavaScript data structure into a JSON string using the following code:
JSON.stringify({somedata: { somesubdata: {}}})
Then, to parse it back into a JS data structure, you can use:
var my_obj = JSON.parse("{"somedata":{"some_subdata":{}}}");
If we were to translate this process to Clojure/ClojureScript for the edn format, what would be the equivalent?
I am interested in serializing some data on a ClojureScript front-end and deserializing it on a Clojure back-end (and vice versa).