title: Json not deserelizing properly
body: <p>I need to connect to a certain API, so i am using their API documentation to generate the API calling client and models so i can use their API. However, one of their calls seems to be giving me an error. When calling that certain API endpoint, <strong>the response looks like this</strong>:</p>
  
  <pre><code> {
        "Data": {
          "Account": [
            {
              "AccountId": "111001",
              "Currency": "GBP",
              "AccountType": "Personal",
              "AccountSubType": "CurrentAccount",
              "Nickname": "Bills",
              "Account": {
                "SchemeName": "UK.OBIE.SortCodeAccountNumber",
                "Identification": "80200110203345",
                "Name": "Mr Kevin",
                "SecondaryIdentification": "00021"
              }
            },
            {
              "AccountId": "111002",
              "Currency": "GBP",
              "AccountType": "Personal",
              "AccountSubType": "CurrentAccount",
              "Nickname": "Household",
              "Account": {
                "SchemeName": "UK.OBIE.SortCodeAccountNumber",
                "Identification": "80200110203348",
                "Name": "Mr Kevin"
              }
            }
          ]
        },
        "Links": {
          "Self": "https://blablabla.com"
        },
        "Meta": {
          "TotalPages": 1
        }
      }
  </code></pre>
  
  <p><strong>The models used to deserilize this response are</strong> :</p>
  
  <pre><code>public class AccountResponseDtoClassUsedToDeserilizeProperly {
          @JsonProperty("Data")
          private Data data;
          @JsonProperty("Links")
          private Links links;
          @JsonProperty("Meta")
          private Meta meta;
      }
  </code></pre>
  
  <hr>
  
  <pre><code> public class Data {
          @JsonProperty("Account")
          private List&lt;Account&gt; account = null;
  }
  </code></pre>
  
  <hr>
  
  <pre><code> public class Account {
  
  
  
  @JsonProperty("AccountId")
      private String accountId;
      @JsonProperty("Currency")
      private String currency;
      @JsonProperty("AccountType")
      private String accountType;
      @JsonProperty("AccountSubType")
      private String accountSubType;
      @JsonProperty("Nickname")
      private String nickname;
      @JsonProperty("Account")
      private Account_ account;
  }
  </code></pre>
  
  <hr>
  
  <pre><code>public class Account_ {
     @JsonProperty("SchemeName")
          private String schemeName;
          @JsonProperty("Identification")
          private String identification;
          @JsonProperty("Name")
          private String name;
          @JsonProperty("SecondaryIdentification")
          private String secondaryIdentification;
      }
  </code></pre>
  
  <p><strong>Some unimportant models have been left out.</strong></p>
  
  <p>When trying to deserilize, this is the error i recieve:</p>
  
  <pre><code>java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 149 path $.Data.Account[0].Account
  </code></pre>
  
  <p><strong>My suspicion for the problem is:</strong>
  In model <code>Data</code> there is an attribue names Account that is a list.</p>
  
  <p>In model <code>Account</code> there is an attribute named Account that is an object. Could the deserilizer get confused because of this? </p>
  
  <ul>
  <li>So how can i fix this? Any solution would be great, but keep in mind that all of these models are generated code from a yaml file, so the best solution would be something that would not interfere with the models, since they will get regenerated on the next build. Thank you!</li>
  </ul>