ngrunwald / ring-middleware-format

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

Overriding json pretty-printing with passed-in options by default #62

Closed timgilbert closed 8 years ago

timgilbert commented 8 years ago

Fix for #61. I added in a brief example in the README and added a test - there was an existing test for testing the pretty-printing options, but the bug existed a little higher up in the call stack so it hadn't been exposed previously. Being somewhat lazy, I mostly just copied that test.