Jstree JSON object <p>In order to populate Jstree with nodes I want to create a JSON object looks like bellow,</p> <pre><code>[ { "data": "Basics", "state": "closed", "children": [ { "data": "login", "state": "closed", "children": [ "login", { "data": "results", "state": "closed", "attr": { "id": "node-123" } } ] }, { "data": "Basics", "state": "closed", "children": [ "login", "something", { "data": "results", "state": "closed", "attr": { "id": "node-456" } } ] } ] }, { "data": "All", "state": "closed", "children": [ { "data": "AddCustomer", "state": "closed", "children": [ "login", "Add", { "data": "results", "state": "closed", "attr": { "id": "node-789" } } ] } ] } ] </code></pre> <p>But I am stuck with creating model object related to this JSON object. Is there any common model object that I can generate above JSON object?</p>