Closed michael-ts closed 6 years ago
json2csv({ data:[{a:"Hi, Joe",b:"+Joe",c:"-Joe"}], fields:["a","b","c"]}) => '"a","b","c"\n,"Hi, Joe", "+Joe","-Joe"'
When I read this into Excel it gives me "#NAME?", because it should be e.g. ="+Joe". Note that we can't treat the first column this way or Excel will treat the comma as a separator.
="+Joe"
Have you tried setting the excelStrings: true property? Described here https://github.com/zemirco/json2csv#available-options
excelStrings: true
@knownasilya That works, thanks!
When I read this into Excel it gives me "#NAME?", because it should be e.g.
="+Joe"
. Note that we can't treat the first column this way or Excel will treat the comma as a separator.