title: How to display my couchabase JSON to zk TreeModel?
body: <p>Previously i wrote a query which is queries the proper couchbase file.I have a entity for it: </p>
  
  <pre><code>class SubMenu{
    String name,url;
    List&lt;SubMenu&gt;; //and of course getters-setters...
  }
  </code></pre>
  
  <p>when i queried i get a arrayList of SubMenu: </p>
  
  <pre><code>Submenu = [name="menu",url="menu",SubMenu[name = "Submenu1",url="submenu1"]
  </code></pre>
  
  <p>So a SubMenu can contains more Submenu</p>
  
  <p>My JSON: </p>
  
  <pre><code>{
  "name":"menu",
  "url:"menu",
  "subMenu":[{
      "name":"submenu",
      "url":"submenu",
      "wubMenu[]
  },
      "name":"submenu2",
      "url":"submenu2",
      "wubMenu[]
  ]
  }
  </code></pre>
  
  <p>And i want to build a tree like menu which has two children submenu and submenu2...and so on...and if submenu has other submenus go show it.
  I started from <a href="https://github.com/simbo1905/zktreemvvm/blob/master/src/main/java/org/github/simbo1905/zktreemvvm/VfsTreeModel.java" rel="nofollow noreferrer">this</a> example....but i dont know how to solve the override methods...getChild,childCount,isLeaf in my case: ArrayList
  Could anyone helps to me? Thanks a lot!</p>