Tool steps
'Convert a spreadsheet to JSON' Tool step
Use a Tool step to convert CSVs and XLSXs into JSON
The ‘Convert a spreadsheet to JSON’ Tool step allows you to convert a CSV or XLSX file into JSON for your Tools to use.
Add the ‘Convert a spreadsheet to JSON’ Tool step to your Tool
You can add the ‘Convert a spreadsheet to JSON’ Tool step to your Tool by:
- Creating a new Tool, then searching for the ‘Convert a spreadsheet to JSON’ Tool step
- Click ‘Expand’ to see the full Tool step
- Add the CSV or XLSX file you want to convert to JSON
- Click ‘Run step’ to run the Tool step
- Your output will be formatted - click ‘Formatted’ to see the JSON output if needed
Using the Tool output
The output is a dictionary with a key rows
.
spreadsheet_to_json[rows]
is a list containing as many rows as included in the uploaded file.- Each row is a dictionary representing one row of data (i.e. keys are column headers in the uploaded spreadsheet).
Below you can see samples where the default name assigned to the step spreadsheet_to_json
is used.