title: Changing the default serialization behavior in Jackson
body: <p>I am using the Jackson library to write custom serializers, and register them inside of a custom ObjectMapper. However, I also want to change the default serialization to simply output the string representation of the object when a more specific custom serialization has not been written.</p>
  
  <p>For example, say I have written custom serializers for classes "Map" and "Entry", in addition to the default serializer. Then the serialization module within my custom ObjectMapper might look like this:</p>
  
  <pre><code>SimpleModule module = new SimpleModule("module", new Version(0, 1, 0, "alpha", null, null));
  module.addSerializer(Entry.class, new EntryJsonSerializer());
  module.addSerializer(Map.class, new MapJsonSerializer());
  module.addSerializer(Object.class, new DefaultJsonSerializer());
  this.registerModule(module);
  </code></pre>
  
  <p>However, I'm finding that the module will use DefaultJsonSerializer to serialize Map and Entry objects (as they are also Object objects).</p>
  
  <p>How can I change the default serialization behavior, while ensuring Entry and Map objects are serialized as intended?</p>