
Nested documents will have a '.' appended between the keys. It automatically generates column headings based on the keys of the JSON documents. This package converts an array of JSON documents into a CSV string. To do the JSON to CSV conversion, we'll be using the json-2-csv module from Node Package Manager (NPM). This article is the continuation of the previous article where you'll how to convert a JSON array into a CSV file. verticalOutput - Boolean Set this option to false to create a horizontal output for JSON Objects, headers in the first row, values in the second.In an earlier article, we looked at converting a CSV file to a JSON array in a Node.js application.undefinedString - String If you want to display a custom value for undefined strings, use this option.includeHeaders - Boolean Set this option to false to hide the CSV headers.booleanFalseString - String Will be used instead of false.booleanTrueString - String Will be used instead of true.arrayPathString - String This is used to output primitive arrays in a single column, defaults to.

