title: Could not read JSON: Unrecognized field "_links" - Android REST HATEOAS client
body: <p>I was following <a href="https://spring.io/guides/gs/consuming-rest-android/" rel="nofollow">this tutorial</a> for Android REST client, but instead of using greeting service, I used my own REST HATEOAS service which returns HAL+JSON in this format:</p>
  
  <pre><code>"name" : "new task",
  "description" : "this is new task",
  "_links" : {
  "self" : {
    "href" : "http://test/tasks/1"
  },
  "item" : {
    "href" : "http://test/tasks/1/item"
  },
  }
  </code></pre>
  
  <p>I get this error at runtime:</p>
  
  <pre><code>Could not read JSON: Unrecognized field "_links" 
  (class com.test.mobile.model.Task), not marked as ignorable 
  (3 known properties: "name", "item", "description"])
  </code></pre>
  
  <p>At this line in MainActivity:</p>
  
  <pre><code>Task task = restTemplate.getForObject(url, Task.class);
  </code></pre>
  
  <p>I would copy/paste all the code, but it's identical to one from tutorial, except it has this two classes instead of greeting:</p>
  
  <pre><code>public class Task {
  private String name;
  private String description;
  private Item item;
  
  public Task() {
  }
  /*getters and setters*/
  }
  
  public class Item {
  private String name;
  private Set&lt;Task&gt; tasks = new HashSet&lt;Task&gt;(0);
  
  public Item() {
  }
  /*getters and setters*/
  }
  </code></pre>
  
  <p>I was looking for some tutorial or code with HATEOAS but found nothing of relevance.</p>
  
  <p>How can I modify my code for spring to be able to parse HATEOAS _links?</p>