/// <summary> /// Builds the json from array. /// </summary> /// <param name="treeNode">The tree node.</param> /// <returns></returns> private JSONValue BuildJsonFromArray(TreeNode treeNode) { JSONArrayCollection result = new JSONArrayCollection(); foreach (JSONValue value in GetValues(treeNode.Nodes)) result.Add(value); return result; }