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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -