Convert a Treeview to JSON using C# -
i have convert treeview object json using c#. using jsonconvert.serializeobject().
public class subtreenode : treenode { public customproperties customproperties; }
public class customproperties {
public string property1 = "property1"; public string property2 = "property2"; public string property3 = "property3"; }
when tried jsonconvert.serializeobject(treeview1.nodes); gives top nodes...not getting child nodes, sub-child & on.
what easiest way serialize , deserialize treeview object. million in advance!
you need add methods produce json each node recursively.
check out related post: serializing tree json object.
Comments
Post a Comment