title: How to write custom property deserializers in jackson
body: <p>I have a lot of different classes that have a property that needs custom deserialization. </p>
  
  <p>Example:</p>
  
  <pre><code>data class Specific(val a: String, val b: String) // &lt;-- Needs special deserialization
  data class Foo(val value: String, val sp: Specific)
  data class Bar(val something: Int, val sp: Specific)
  </code></pre>
  
  <p>I have tried creating a custom deserializer using the <code>StdDeserializer</code>. And this only works if I write the deserializer for the actual class (<code>Foo</code> and <code>Bar</code>), but I only want to write one for the <code>Specific</code> type.</p>
  
  <p><em>As I'm using Kotlin I would love the non java Annotated way to to it.</em></p>