metosin / reitit

A fast data-driven routing library for Clojure/Script
https://cljdoc.org/d/metosin/reitit/
Eclipse Public License 1.0
1.43k stars 257 forks source link

POST body: how to translate camel case JSON into Clojure kebab #345

Open promesante opened 4 years ago

promesante commented 4 years ago

Hi,

How should I translate typical camel case JSON keys into typical kebab case Clojure ones?

I have not been able to find out in docs yet, not even by searching Google.

Thanks in advance !

Luis https://promesante.github.io/ https://github.com/promesante

pablo-develop commented 4 years ago

Ive managed to come up with a solution https://gist.github.com/pablo-develop/76eb66f6ea9f4db19a86aadf59a4d188