I want to make a bulk insert from a CSV with columns names different to the ones in my database. I am developing a React Web application and would like to convert it to JSON with the correct columns names.
Here is an example:
Csv:
Prod,price,stock
Shirt,200,12
JSON:
{User_prod:'Shirt',User_price:'200',user_stock:'12'}
You can use the react csv libraries for loading and manipulating the csv header.