I am trying to pretty print a JSON from clojurescript, on the browser's console.
I found the following link - How can I pretty-print JSON using JavaScript?
The above link provides the following js - JSON.stringify(obj, undefined, 2)
The following translation in cljs doesnt work (.stringify js/JSON obj undefined 2)
- Is there any native way in cljs for pretty printing?
- Any ideas why the above cljs expression doesnt work ?