Description
Json content is wrong when convert a xlsx file to json file by Aspose.Cells.
Env
- Windows 10 .NET 4.7
- Aspose.Cells for .NET 22.12
Code
var doc = new Aspose.Cells.Workbook(@"C:\Users\XCL\Desktop\test\source.xlsx");
var ops = new Aspose.Cells.JsonSaveOptions();
ops.ExportNestedStructure = true; // if remove this line or fill a string like 'ID' into first cell, it's OK.
doc.Save(@"C:\Users\XCL\Desktop\test\target.json", ops);
Received Json Content
[
{
1
},
{
2
},
{
3
},
{
4
},
{
5
},
{
6
},
{
7
},
{
8
},
{
9
},
{
10
}
]
Expected Json Content
[
{
"1": 2
},
{
"1": 3
},
{
"1": 4
},
{
"1": 5
},
{
"1": 6
},
{
"1": 7
},
{
"1": 8
},
{
"1": 9
},
{
"1": 10
}
]
Test File
test.zip (6.0 KB)