ring

petr.mensik 2017-05-30T17:06:59.715231Z

Hello, just a quickie, is it possible to use some middleware to automatically process JSON array as Clojure vector?

:params {:contact_id "1", :companies "[1, 2]"},
Thanks a lot

petr.mensik 2017-05-30T17:07:43.731006Z

I can do (get-in request [:params :companies]), however the array is interpreted as string

petr.mensik 2017-05-30T17:08:18.743270Z

I am using wrap-json-params from ring.middleware.json

2017-05-30T23:20:03.594460Z

Yes, but you’ll need to write your own middleware, @pter.mensik