Hey @roman.bataev Is it possible to do golang interop from within joker script? I'd love to pprint json string (e.g. using json.Indent). Or are you maybe planning on adding indent support to json/write-string?
Hi @annapawlicka! Joker doesn't have golang interop. @james-clojure has a fork that does (https://github.com/jcburley/joker). Adding optional indentation should be a very low effort, I'll look into it.
thanks!
@annapawlicka depending on what you’re aiming for, you might also want to check out https://github.com/glojurelang/glojure. it's another clojure-on-go implementation that has first-class go interop. could be useful if interop is the main thing you need, but it may be a bit rougher around the edges than joker in some ways :)
Thanks @jfhamlin joker does everything i need, just this one thing is missing, but i was able to just run jq through joker and it worked fine. not as elegant as doing something like joker.json/write-string :indent though
But I'll take a look at glojure out of curiosity
@annapawlicka I’ve added indentation support to joker.json/write-string in the latest release (v1.5.6). See docs here: https://candid82.github.io/joker/joker.json.html#write-string
thanks @roman.bataev, that was fast! I'll check it our later today