Skip to content
Advertisement

Tag: json2csv

How to format values using json2csv in javascript?

I’m using json2csv v5.0.6 for a small project and I wanted to format some values using custom formatters so I get a clean CSV file. However, I can’t seem to make the formatters work. I have one number formatter and one string formatter that are supposed to be called upon parsing. Here’s a sample test file that reproduces this behaviour,

Advertisement