Convert CSV data into JSON format using Javascript

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;string;authors:n
1;To Kill an Angry Bird;1

[authors.csv]

id;name integer;string 1;Harper Lee 2;JRR Tolkien 3;William Shakespeare

I want to get all the books with their authors. So please how can I implement it using Javascript.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)