title: Search for value within YAML nested data
body: <p>I'm currently trying to parse a YAML file as input/configuration for running some tests. The problem is: using Jackson, nesting data seems not to fit within the class regardless of the structure i design for it, almost every time I'm getting something like this: </p>
  
  <pre><code>com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.util.ArrayList` out of START_OBJECT token
  </code></pre>
  
  <p>I intent to simply "search" for the data within the YAML file using a similar approach of the XPath, without worrying about mapping objects and finite levels of nesting.</p>
  
  <p>Here is the example class: </p>
  
  <pre><code>public class YAMLInput {
  
      private ArrayList&lt;SomeContainer&gt; containers;
      //getter and setters
  
      private class SomeContainer {
          private String name; 
          private String path;
          private ArrayList&lt;Integer&gt; intList;
          private ArrayList&lt;String&gt; strList;
          private ArrayList&lt;SomeObject&gt; someObjList;
  
          private class SomeObject {
               private String objectName;
               private ArrayList&lt;String&gt; strList;
          }
  
      }
  }
  </code></pre>
  
  <p>And the Yaml input: </p>
  
  <pre><code>container:
      name: Cont1
      path: /storage/outputFolder
      intList: 
          - 100
          - 200
          - 300
      strList:
          - strFirst
          - strSecond
          - strThird
      someObjList: 
          obj1: 
            objName: strname
            strList: 
               - 100
               - 200
               - 300
          obj2:
            # (...)
  
  </code></pre>
  
  <p>The idea is to build a constructor for the <code>YAMLInput</code> class: </p>
  
  <pre><code>public YAMLInput( SearchableYAMLData data) {
     for(SearchableYAMLData container : data.getList("container")){
        this.containers.add( new SomeContainer());
        this.containers.get(0) = container.get("name");
        //...
     }
  }
  </code></pre>
  
  <p>What would be the closest available tool to this hypothetical <code>SearchableYAMLData</code> class?</p>