Plug Database icon

Plug Database

Run Plug Database commands over REST or Socket.

Tools → JSON to CSV

AI-generated

Summary

Convert a JSON array into a CSV string and store the result in a specified JSON property of the output.

Inputs

  • Tool Category — Select the group of tools to filter available tool options; defaults to 'Documents' but for JSON to CSV likely 'Data' category is appropriate.
  • JSON (required) — Input JSON array to be converted to CSV format.
  • Output JSON Property — The name of the JSON property in which to store the resulting CSV string; defaults to 'csv'.

Output shape

a single JSON object with a property containing the CSV string representation of the input JSON array.

The CSV output is stored in the output JSON under the user-specified property name (default 'csv'). The input JSON must be a valid array for conversion; no pagination or streaming involved. Errors occur if input is invalid.

Examples

Example 1: Converting JSON array of records to CSV

Set 'JSON' input to the JSON data array; optionally change 'Output JSON Property' to desired property name; run the operation to obtain CSV string output under that property.

Links

Discussion