You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,9 @@ Returns the CSV `string` or rejects with an `Error` if there was an issue.
50
50
51
51
*`array` - An array of JSON documents to be converted to CSV.
52
52
*`options` - (Optional) A JSON document specifying any of the following key value pairs:
53
+
*`arrayIndexesAsKeys` - Boolean - Should array indexes be included in the generated keys?
54
+
* Default: `false`
55
+
* Note: This provides a more accurate representation of the JSON in the returned CSV, but may be less human readable. See [#207](https://github.com/mrodrig/json-2-csv/issues/207) for more details.
53
56
*`checkSchemaDifferences` - Boolean - Should all documents have the same schema?
54
57
* Default: `false`
55
58
* Note: An error will be thrown if some documents have differing schemas when this is set to `true`.
0 commit comments