title: Jackson: Map<String, Object> serialization and deserialization
body: <p>Is it possible to serialize/deserialize <code>Map&lt;String, Object&gt;</code> where type of object (mapped value) would be determined by its key.</p>
  
  <pre><code>{
      "number":42,
      "desc":"something really important",
      "location":{
          "x":9999,
          "y":9999,
          "wkid":9999
      },
      "shape":{
          "type":"polyline",
          "data":"dGhpcyBnZW9tZXRyeSBpcyBmYWtlIDpQ"
      }
  }
  </code></pre>
  
  <p>In this particular case I know that <code>desc</code> is always going to be <code>string</code>, <code>location</code> and <code>shape</code> - 3rd party classes (I have serializers and deserializers for them) and other values are boxed primitives.</p>
  
  <p>Is it possible to do something like this with jackson? Could such thing be done by using MapSerializer/MapDeserializer? (I couldn't find any examples)</p>