codahale/dropwizard — pull request #146 by asinger (2012-07-30 07:36:25+00:00)
Title: JacksonMessageBodyProvider should not try to serialize, byte[], String, ...

...InputStream...

- canSerialize will return true for things that could be valid json
properties. For example, a byte[] is base64 encoded and
written. That's not really a json object by itself, though. The
client probably wanted the built-in byte array provider to kick in.

- Added a DEFAULT_IGNORE set of classes to ignore. Similar idea to Tatu's own provider:
https://github.com/FasterXML/jackson-jaxrs-json-provider/blob/master/src/main/java/com/fasterxml/jackson/jaxrs/json/JacksonJsonProvider.java

- Also check the media type. If it's not set, or looks like any json
type, we continue with the other checks. If it's a word doc media
type, well, don't continue.