title: Read yaml to object using jackson
body: <p>I have Yaml which looks like this:</p>
  
  <pre><code>data_lists:
        list1:(dynamic name)  
          - AA: true
            BB: true
            CC: "value"
          - AA: false
            BB: true
            CC: "value2"
  </code></pre>
  
  <p>What I am trying to get is to store it to the object</p>
  
  <pre><code>class BLA{
  private boolean AA;
  private boolean BB;
  private String CC;
  
  //getters and setters
  
  }
  </code></pre>
  
  <p>I am using jackson library but I can found how to ignore root elements like data_lsts and lists1 and store only array objects.</p>
  
  <p>My current code is:</p>
  
  <pre><code>ObjectMapper mapper = new ObjectMapper(YAML_FACTORY);
  List&lt;BLA&gt; bla = Arrays.asList(mapper.readValue(ymlFile, BLA.class));
  </code></pre>