CSV to Nested JSON C#
问题 I would like to convert a csv file into json with nested objects and nested array. The sample csv looks like below. My csv structure can be dynamic, but I am ok to keep it static to get the required format below. I know there are so many answers to similar questions, but none addressing my specific issue of nested objects. Id,name,nestedobject/id,nestedarray/0/name 1,name,2,namelist 2,name1,3,namelist1 I want the json like below, specifically having trouble with column 3 & 4 (nested objects)