Excel to JSON javascript code?

后端 未结 4 1072
予麋鹿
予麋鹿 2020-12-04 13:03

I want to convert excel sheet data to json. It has to be dynamic, so there is an upload button where user uploads the excel sheet and the data is then converted into json. C

4条回答
  •  悲哀的现实
    2020-12-04 13:25

    js-xlsx library makes it easy to convert Excel/CSV files into JSON objects.

    Download the xlsx.full.min.js file from here. Write below code on your HTML page Edit the referenced js file link (xlsx.full.min.js) and link of Excel file

    
    
    
    
        Excel to JSON Demo
        
    
    
    
    
        
    
    
    

    Input:
    Click here to see the input Excel file

    Output:
    Click here to see the output of above code

提交回复
热议问题