After performing a fetch request using JavaScript, I have converted JSON data into CSV format.
datetime","open","high","low","close","volume"
"2020-01-28","312.48999","318.39999","312.19000","317.69000","31027981"
"2020-01-27","309.89999","311.76001","305.89001","308.95001","36450411"
"2020-01-24","320.06320","323.32001","317.53000","318.32999","33995457"
...
To further process the data, I need to remove the quotes (") from everywhere. My attempt was:
csvdata.replace("\"", "")
I'm looking for a way to bulk replace the quotes or if I need to iterate through each line. The desired formatting of the data should be as follows:
datetime,open,high,low,close,volume
2020-01-28,312.48999,318.39999,312.19000,317.69000,31027981
2020-01-27,309.89999,311.76001,305.89001,308.95001,36450411
2020-01-24,320.06320,323.32001,317.53000,318.32999,33995457
...
Your help is greatly appreciated. Thank you!