title: Jackson Json deserialization of an object to a list
body: <p>I'm consuming a web service using Spring's <code>RestTemplate</code> and deserializing with <code>Jackson</code>.</p>
  
  <p>In my JSON response from the server, one of the fields can be either an object or a list. meaning it can be either <code>"result": [{}]</code> or <code>"result": {}</code>.</p>
  
  <p>Is there a way to handle this kind of things by annotations on the type I'm deserializing to ? define the member as an <code>array[]</code> or <code>List&lt;&gt;</code> and insert a single object in case of the second example ?
  Can I write a new <code>HttpMessageConverter</code> that will handle it ?</p>