I need to ask about import excel sheet question with child-parent relationship.
output i want to like that
[{"Code":"888800","Title":"Category","Value":"123","Children":[]},
{"Code":"100000","Title":"Category1","Value":"123","Children":
[
{"Code":"120000","Title":"SubCategory","Value":"123","Children":[]},
{"Code":"352000","Title":"SubCategory2","Value":"123","Children":[]},
{"Code":"200000","Title":"SubCategory3","Value":"123","Children":[]}, ]},
{"Code":"212101","Title":"Category3","Value":"123","Children":
[
{"Code":"213100","Title":"SubCategory4","Value":"123","Children":[]},
{"Code":"213200","Title":"SubCategory4","Value":"123","Children":[]}
]}
]
below I have a my code, but I don't know where is my wrong point. When I'm creating Json Serialization value and children part not correctly