title: Creating POJOs for json with single field containing Array with RestTemplate
body: <p>I am creating a client for the following format of JSON -</p>
  
  <pre><code>{
      "results": [
          {
              "Product": "K265113",
              "Language": "EN",
              "LongText": "FIXTURE,INTERIOR,WALL"
          }
      ]
  }
  </code></pre>
  
  <p>The JSON always contains "results" field which is an array of a single element (it will always be a single element in this array). I just need LongText field from the JSON and nothing else. I am using Spring RESTTemplate.</p>
  
  <p>I know that it works if I create two DTOs like -</p>
  
  <pre><code>public class ParentDTO
  {
      private List&lt;ChildDTO&gt; results;
  
      public List&lt;ChildDTO&gt; getResults()
      {
          return results;
      }
  
      public void setResults(List&lt;ChildDTO&gt; results)
      {
          this.results = results;
      }
  }
  
  
  public class ChildDTO
  {
      private String longText;
  
      public String getLongText()
      {
          return longText;
      }
  
      @JsonProperty("LongText")
      public void setLongText(String longText)
      {
          this.longText = longText;
      }
  }
  </code></pre>
  
  <p>But is there any way to read longText by creating a single DTO as the parent DTO is not having any useful field as I know there will always but just one element in the results array.</p>