ring-clojure / ring-json

Ring middleware for handling JSON
313 stars 47 forks source link

Add support for :key-fn in wrap-json-response middleware #64

Closed neenaoffline closed 4 years ago

neenaoffline commented 4 years ago

There are a couple of Cheshire supported options that the middleware does not pass through. We could add either support for key-fn explicitly or have a map that is passed through to Cheshire.

We need at least the :key-fn option so that the namespace qualified keys can be unqualified before exposing them outside of our system. If there's any interest in this, I'd be happy to raise a PR.

Thanks

neenaoffline commented 4 years ago

Spoke too soon, it does actually pass through the options. So, I should be able to use key-fn.