Serialize Treeview to JSON and Deserialize back to Treeview

  • Thread starter Thread starter itsaliakber5253
  • Start date Start date
I

itsaliakber5253

Guest
I need to serialize a Treeview node to JSON format and deserialize back to a Treeview.

I have got a custom SubNode class as shown below

Class SubNode: TreeNode

{

dynamic obj;

}

So when a tree node is created, it will also have a complex object in every node as shown below.


SubNode sub = new SubNode();

sub.obj.property = "Value1"

sub.obj.Complex.Prooerty = "Value2"

so on....


Could you please let me know how do we achieve this? Thanks a million in advance!

Continue reading...
 
Back
Top