Follow these steps to get the required output.
1. Read the .xlsx file and store all the data in DataTable object.
2. Make a dictionary object like this e.g
Dictionary<string,list><string>> obj = new Dictionary<string,list><string>>
3. Fill the list object with all the Rows values for selected column
4. the first parameter for Dictionary object would be the key and it will refer the column name defined in excel file.
5. Once you fill all the values in the dictionary object, generate the output in Json format by using
JsonConvert.SerializeObject(objectToSerialize)
to use JsonConvert class include the Dll Newtonsoft.Json.