I want to serialize a list of strings in C#? I have previously successfully used an open-source library Cinchoo ETL for similar tasks, but I am stuck in this particular scenario. I do not want to use POCO since my source data structure is dynamic. I would much rather read the data from a csv and serialize it.
My source data in csv format:
id,name,friends/0,friends/1
1,Tom,Dick,Harry
Required output JSON - {"id":1,"name":"Tom","friends":["Dick","Harry"]}