I have a simple python program which converts excel to json .
import jpype
import asposecells
jpype.startJVM()
from asposecells.api import Workbook
workbook = Workbook("sample.xlsx")
workbook.save("sample3.json")
jpype.shutdownJVM()
And i get the output as below
[
{
"Name": "DS",
"Gender": "M"
},
{
"Name": "DS1",
"Gender": "M"
},
]
Instead i want the output to have some extra (hardcoded) fields and word data appended
[
{
"date": "06/05/2022",
"data":{
"Name": "DS",
"Gender": "M"
}
},
{
"date": "06/05/2022",
"data":{
"Name": "DS1",
"Gender": "M"
}
},
]
Any insights on aspose-cells ? i referred the aspose docs , but didnt find anyways to do it. Any help will be appreciated. Thanks in advance.
source https://stackoverflow.com/questions/76409014/how-to-add-customized-fields-before-saving-the-data-to-json
Comments
Post a Comment