joker

annapawlicka 2025-08-20T17:11:06.684239Z

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?

Candid 2025-08-20T18:54:25.913209Z

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.

annapawlicka 2025-08-20T19:48:19.956169Z

thanks!

James Hamlin 2025-08-20T20:23:59.079189Z

@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 :)

annapawlicka 2025-08-20T22:19:59.276169Z

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

👍 1
Candid 2025-08-21T18:32:54.226749Z

@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

annapawlicka 2025-08-21T19:08:46.211259Z

thanks @roman.bataev, that was fast! I'll check it our later today