export_csv
Exports an array of objects from a loaded JSON document to a CSV file, using all keys as columns or a specified field list; nested values are saved as JSON strings.
Instructions
Export an array of objects to a CSV file.
If fields is omitted, all keys found across all objects are used as columns. Nested values (dicts, arrays) are serialized as JSON strings in the CSV.
Args: alias: The alias of the loaded document. path: Dot-notation path to the array of objects. output_path: File path for the output CSV. fields: Optional list of column names to include.
Returns: Confirmation with file path, row count, and column count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| alias | Yes | ||
| fields | No | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |