Click here to Skip to main content
15,894,955 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I Want to create this type of
json
C#
var data = [{"id": "1", "name": "name_1", "parent_id": "0", "depth": "0"},
        {"id": "2", "name": "name_2", "parent_id": "0", "depth": "0"},
        {"id": "3", "name": "name_3", "parent_id": "1", "depth": "1"},
        {"id": "4", "name": "name_4", "parent_id": "3", "depth": "2"}];



from this type of HTML List

  • A
  • B
    • D
      • E
        • F
    • 1
  • C
Posted
Updated 11-Aug-15 1:05am
v2
Comments
DamithSL 11-Aug-15 5:53am    
what have you tried so far?

1 solution

I want Reverse Process of it
Please read it again
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900