ngrunwald / ring-middleware-format

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

Add JSON pretty-printing & test. #14

Closed ieure closed 11 years ago

ieure commented 11 years ago

This adds support for pretty-printed JSON responses to wrap-json-reponse, by setting the :pretty kwarg to true. Existing functionality isn't impacted.

I use ring-mwf in places where I want the output to be readable by machines and humans, and pretty-printed JSON is a reasonable compromise for these cases.

ieure commented 11 years ago

Ping

ngrunwald commented 11 years ago

Sorry about the delay, I've been very busy theses last weeks, but I'll handle this this week-end.

ngrunwald commented 11 years ago

Weeell, that was a pretty long week-end, I'll admit... Thanks for the patch, it's merged, new release coming soon!