title: Mapping this json to java object (pojo)
body: <p>I have to map a json which would look like this, it's basicly an object, which can contain the same object again as a child, then that one can also contain the same object again. How would i be able to map this to java pojo's?</p>
  
  <p>This is the json:</p>
  
  <pre><code>    {
  "group": [
              {
                  "name": "Beheerders",
                  "desc": "Beheerders",
                  "children" : [
                      "group" : [
                          {
                              "name": "Beheerders",
                              "desc": "Beheerders"
                          },
                          {
                              "name": "Beheerders",
                              "desc": "Beheerders"
                          },
                          {
                              "name": "Beheerders",
                              "desc": "Beheerders"
                              "children": [
                                  "group" : [
                                  {
                                      "name": "Beheerders",
                                      "desc": "Beheerders"
                                  },
                                  {
                                      "name": "Beheerders",
                                      "desc": "Beheerders"
                                  }
                          }
  
              }
          ]
      }
  </code></pre>
  
  <p>And i have these 4 pojo's:</p>
  
  <p>Group.java</p>
  
  <pre><code>        private String name;
          private String desc;
          private Children children;
  
  //getters &amp; Setters &amp; toString
  </code></pre>
  
  <p>GroupList.java</p>
  
  <pre><code> private ArrayList&lt;Group&gt; group;
  
      public void setGroup(ArrayList&lt;Group&gt; group) {
          this.group = group;
      }
  
      public ArrayList&lt;Group&gt; getGroup() {
          return this.group;
      }
  </code></pre>
  
  <p>Children.java</p>
  
  <pre><code>   private ArrayList&lt;ChildrenGroup&gt; group;
  
      public ArrayList&lt;ChildrenGroup&gt; getGroup() {
          return this.group;
      }
  
      public void setGroup(ArrayList&lt;ChildrenGroup&gt; group) {
          this.group = group;
      }
  </code></pre>
  
  <p>childrengroup.java</p>
  
  <pre><code>    private String name;
      private String desc;
      private Children Children;
  
  //Getters &amp; Setters &amp; toString
  </code></pre>
  
  <p>This is not working for me, i always get this error:</p>
  
  <p>com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token</p>