I have a json file that I have attached below. I have to read the json file in python. This file containes the path of my xls file containing multiple sheets, which needs to be cleaned and output each sheet as separate csv files. Any idea on how I can go about?
{ "file":{
"path":"C:/.../xyz.xlsx",
"sheetname":"Sheet1"
"Clean":{
"1":"A",
"2":"B",
"3":"C"
},
"Delete":{
"1":"D",
"2":"E"
},
"outfile":"C:/.../out_xyz.csv"
}
}
I referred to few links that I have attached below, I'm still in vain!
Reading JSON from a file?
How can i split an Excel (.xls) file that contains multiple sheets into separate excel files?
Save each sheet in a workbook to separate CSV files