Hi. What would a good “Ring’ish” default for a predicate whether to automatically encode response :body
into JSON/EDN/Transit by the format-encoder middleware… ring-json has (coll? body)
, ring-middleware-format has https://github.com/ngrunwald/ring-middleware-format/blob/master/src/ring/middleware/format_response.clj#L22-L30. We have the ring-json-like predicate in Muuntaja (https://github.com/metosin/muuntaja/blob/master/src/clj/muuntaja/core.clj#L200-L203). Just got bitten by it.