title: Jackson desrialize when JsonProperty is sometimes array and sometimes a single Object
body: <p><strong>I've searched Stack Overflow before posting, but there were no solutions for Jackson.</strong><br><br>
  Here is a server response:<br></p>
  
  <pre><code>{
    "ok": true,
    "result": [
      {
        "update_id": 489881731,
        //rest 
      },
      {
        "update_id": 489881732,
        //rest
      }
    ]
  }
  </code></pre>
  
  <p>As you see property <code>"result"</code> is an array.<br><br>
  Now this is another response:<br></p>
  
  <pre><code>{
    "ok": true,
    "result": {
      "id": 211948704,
      "first_name": "ربات ادمین‌های تلگرام",
      "username": "tgAdminsBot"
    }
  }
  </code></pre>
  
  <p>Here <code>"result"</code> is a single object.<br><br>
  This is my class I want to deserialize content to it. I wrote a <strong>custom deserializer</strong> for <code>TObject</code> of course:<br></p>
  
  <pre><code>public class Result
  {
      private TObject[] result;
      private boolean ok;
  
      public void setOk (boolean ok) {//code}
  
      public void setResult (TObject[] result) {//code}
  
  
      public TObject[] getResult () {//code}
  
      public boolean getOk (){//code}
  }
  </code></pre>
  
  <p>So I assumed in my class that "<code>result"</code> is an array of <code>TObject</code>s. Now what can I do? <em>Is using <code>@JsonProperty("result")</code> for two fields which one is an array of <code>TObject</code>s and one is a single <code>TObject</code> OK?</em><br><br>
  If not what else can I do?</p>