Convert CSV data into JSON format using Javascript

后端 未结 6 2406
谎友^
谎友^ 2020-11-27 04:24

I have data in CSV format data and want to convert into JSON format using Javascript.

Following are csv format:

[Test.csv] 
id;name;author
integer;st         


        
6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 04:53

    I would check out out PapaParse. They have a file called papaparse.min.js that you can drop into your project if need be. PapaParse has no dependencies.

    I have used it myself and can verify it works, is convenient, and is well-documented.

提交回复
热议问题