title: Jackson - serialization of Map<String, Object> implementation
body: <p>I have following class:</p>
  
  <pre><code>public class Some implements Map&lt;String, Object&gt;{
      private Map&lt;String, Object&gt; innerMap;
      //implementation that can only set innerMap in constructor and cannot add or remove values
  }
  </code></pre>
  
  <p>The problem is that I cannot deserialize this in jackson correctly. If I serialize without default typing, it is OK, since it is serialized as {"one":"two"} and deserialized correctly (I had to implement deserializer with </p>
  
  <pre><code>return new Some(jp.readValueAs(new TypeReference&lt;HashMap&lt;String,Object&gt;&gt;(){}));
  </code></pre>
  
  <p>When I use default typing turned on, this is serialized as </p>
  
  <pre><code>["com.class.Some",{"one":"two"}]
  </code></pre>
  
  <p>But deserialization is throwing </p>
  
  <pre><code>com.fasterxml.jackson.databind.JsonMappingException: Unexpected token (START_OBJECT), expected START_ARRAY: need JSON Array to contain As.WRAPPER_ARRAY type information for class java.util.HashMap
  </code></pre>
  
  <p>Any thoughts?</p>