ngrunwald / ring-middleware-format

Ring middleware for parsing parameters and emitting responses in JSON or other formats
163 stars 49 forks source link

JSON en/decoding using cheshire.custom. #6

Closed jeremy-w closed 12 years ago

jeremy-w commented 12 years ago

This simplifies using custom encoders for types not directly supported by Cheshire without sacrificing the generality of the wrap-restful-* functions.

jeremy-w commented 12 years ago

A better approach would be an easy way to override, on a type-by-type basis, the encoder used by wrap-restful-response. This just makes it easy to add custom encoders for JSON, but if you want custom YAML encoding? No help.

ngrunwald commented 12 years ago

Thanks!