title: Dynamic JMS Serializer types
body: <p>Is it possible to have one class, with 2 types (1 for serialization and 1 for deserialization) on the same property ?</p>
  
  <p>For instance, I use an API that allow me to send an address as a string, and I receive the same address as an object. Like this:</p>
  
  <p>Request:</p>
  
  <pre><code>{
    "address": "12 rue rivoli, 75001 Paris"
  }
  </code></pre>
  
  <p>Response</p>
  
  <pre><code>{
    "address": {
      "street": "12 Rue de Rivoli",
      "postcode": "75004",
      "city": "Paris",
      "country": "France"
    }
  }
  </code></pre>