export_to_json
Export records from a Universe file to JSON format. Specify file name and record IDs to convert data for analysis or integration.
Instructions
Export records from a Universe file to JSON format.
Reads the specified records and returns them as a JSON string. Useful for data analysis and integration with other tools.
Args: file_name: Name of the Universe file record_ids: List of record IDs to export expand_mv: If True, expand multivalues into separate objects. If False (default), preserve multivalue arrays.
Returns: Dictionary containing: - status: success or error - format: "json" - record_count: Number of records exported - data: JSON string of the exported records
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expand_mv | No | ||
| file_name | Yes | ||
| record_ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||