Is there a way to make Transit emit the keys of hashes to use hyphens when it is a Symbol?
For example, the following happens:
w = Transit::Writer.new(:json, STDOUT)
w.write({a_b: 1})
# => ["^ ","~:a_b",1]
I would like to configure the writer to emit:
# => ["^ ","~:a-b",1]
Is there a way to do this without resorting to writing the hash as {:"a-b" => 1} ?
Alternatively, is there a way to configure the reader in transit-clj to convert keywords like :a_b to :a-b?