I’m having issues with my JSON ImportData throwing the error ‘Row number or column number cannot be zero’. Here’s my code:
private static void ConvertToExcel(string json)
{
//Create workbook
Workbook workbook = new Workbook();
//Worksheet worksheet = workbook.Worksheets[0];
//Read JSON files
JsonLayoutOptions options = new JsonLayoutOptions();
//Import JSON data
JsonUtility.ImportData(json, workbook.Worksheets[0].Cells, 0, 0, options); //Error occurs here
//Save Excel file
DateTime today = DateTime.Now;
workbook.Save("../../../" + today.ToString("MMM-dd-yyyy") + "_SurveyResponses.xlsx");
}
I tried reader other threads with similar problems but I wasn’t able to fix the error using those threads