title: ObjectMapper readValue
body: <p>I load a ressource file json
  with the text format</p>
  
  <pre><code>{
      "sources": [{
              "prop1": "1",
              "prop2": "2"
  
          },
          {
              "prop1": "1",
              "prop2": "2"
  
          },
      ],
      "redirection": [{
              "prop1": "1",
              "prop2": "2"
  
          }
      ]
  }
  </code></pre>
  
  <p>I have a class  with this properties prop1 and prop2</p>
  
  <p>I want to recover with ObjectMapper a list class. What the method ?</p>
  
  <p>This code doesn't work ....</p>
  
  <pre><code> Map&lt;String, Object&gt; mp =  mapper.readValue(jsonResource.getInputStream(),new TypeReference&lt;Map&lt;String, Object&gt;&gt;() {});
  String sourceText= new ObjectMapper().readTree(jsonResource.getInputStream()).get("sources").asText();
  
   mapper.readValue(sourceText, new TypeReference&lt;List&lt;MyClass&gt;&gt;(){});
  </code></pre>
  
  <p>Thanks for your help</p>