dbp/hspec-snap — pull request #2 by timmytofu (2014-11-07 19:54:28+00:00)
Title: Adds Json as a form of TestResponse

Adds a `Json` `TestResponse` by looking at the `content-type` header. Keeps the body as a lazy `ByteString` for future `decode`ing. I considered `decode`ing the body immediately into a `Maybe Value` in order to add some `shouldBeEmptyObject` type predicates, but it didn't seem to add any real value versus letting the user `decode` directly into their expected `FromJSON` instance.

I dunno [how far you want to take this](http://en.wikipedia.org/wiki/Internet_media_type#List_of_common_media_types), but at least adding a JSON type would be nice.