title: Convert jsonnode to pojo
body: <p>I can't get the json string that is sent to parse into the pojo. </p>
  
  <p>com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of com.sg.info.Account out of START_ARRAY token
   at [Source: java.io.StringReader@1f6dcfe2; line: 1, column: 1]</p>
  
  <p>This is the json</p>
  
  <pre><code>[{"accno":9210255,"type":"Stock- and mutual funds account","default":true,"alias":"Karlsson Joachim"}]
  </code></pre>
  
  <p>The parsing</p>
  
  <pre><code>public void getAccounts()
      {
          ObjectMapper mapper = new ObjectMapper();
          String resp = Login.getBaseResource().path("accounts").request(Login.getResponsetype()).get(String.class);
  
          try  {
  
              account = mapper.readValue(resp, Account.class);
  </code></pre>
  
  <p>POJO</p>
  
  <pre><code>import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonProperty;
  
  @JsonInclude(JsonInclude.Include.NON_NULL)
  @JsonIgnoreProperties(ignoreUnknown=true)
  public class Account {
  
      public Account() {
  
      }
      private long accno;
      private String type;
      @JsonProperty("default")
      private String isDefault; 
      private String alias;
  
  
      public long getAccno() {
          return accno;
      }
      public void setAccno(long accno) {
          this.accno = accno;
      }
      public String getType() {
          return type;
      }
      public void setType(String type) {
          this.type = type;
      }
      public String getAlias() {
          return alias;
      }
      public void setAlias(String alias) {
          this.alias = alias;
      }
      @Override
      public String toString() {
          return "Account [accno=" + accno + ", type=" + type + ", alias="
                  + alias + "]";
      }
      public String isDefault() {
          return isDefault;
      }
      @JsonProperty("default")
      public void setDefault(String isDefault) {
          this.isDefault = isDefault;
      }
  
  
  
  
  }
  </code></pre>