SyntaxFix
Write A Post
Hire A Developer
Questions
You need to stringify the object.
fs.writeFileSync('../data/phraseFreqs.json', JSON.stringify(output));