# Simple JSON Data

###### [ File Path: core/simpleData.html ]

- ## 1, Explanation of setting

  - Must set setting.data.simple attributes, see the API documentation for more related contents.
  - The setting.view in API documentation is associated with the display of the zTree.
  - To change the 'name', 'children', 'title' attribute, please refer to the API documentation about 'setting.data.key'.

- ## 2, Explanation of treeNode

  - Id / pId that include parent-child relationship between nodes is needed if you use Simple model of the JSON data, and other attributes please refer to the instructions within setting.data.simple.

        For example:
        var nodes = [
        	{id:1, pId:0, name: "pNode 01"},
        	{id:11, pId:1, name: "child 01"},
        	{id:12, pId:1, name: "child 02"}
        ];

  - To set nodes expanded by default, set treeNode.open attribute.
  - To get parent node which has no child node, set treeNode.isParent attribute.
  - Please refer to the API documentation "treeNode data details" to view other attributes description.

- ## 3、Other explanation

  - The simple JSON data model has been used almost everywhere, which can be learned easily.