Entwickler-Tools
Excel · JSON · CSV Konverter
data-converter
Use Excel JSON CSV Converter through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Schnellzugriff
Eingabedateien 0–1Ausgabedateien 1
Eingabe
Zulässige Eingabeformate und Dateianzahl für dieses Tool.
| Eingabetyp | file-or-data |
|---|---|
| Dateianzahl | 0 – 1 |
| Zulässige MIME-Typen | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, text/csv, application/json, text/plain |
Parameter
Diese Werte über request.options übergeben.
| Parameter | Typ | Erforderlich | Standard | Zulässig / Bereich | Beschreibung |
|---|---|---|---|---|---|
operation |
enum | Erforderlich | — | excel-to-json | json-to-excel | json-to-csv | csv-to-json | Conversion to perform. excel-to-json reads a workbook; json-to-excel creates XLSX; json-to-csv creates CSV; csv-to-json parses CSV. |
sheet |
string | Optional | — | — | Excel worksheet name for excel-to-json. If omitted, the first worksheet is used. |
headerRow |
integer | Optional | 1 |
1 – 1000 | 1-based row containing column headers for Excel or CSV input. |
flatten |
boolean | Optional | true |
— | Flatten nested JSON objects into dotted column paths such as user.name before tabular export. |
delimiter |
enum | Optional | auto |
auto | comma | semicolon | tab | CSV delimiter. auto detects comma, semicolon or tab from the first non-empty row. |
includeBom |
boolean | Optional | true |
— | Prefix generated CSV with UTF-8 BOM for spreadsheet compatibility. |
Ausgabe
Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.
| Typ | files+data |
|---|---|
| Dateianzahl | 1 – 1 |
| Ausgabe-MIME | application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
| Metadata | rows, columns, sheet, delimiter |
| ZIP-Archiv | Nicht unterstützt |
Grundlegende Verwendung
Unterstützten Integrationsmodus wählen und den erzeugten Starter-Code kopieren.
Headless
const result = await client.run("data-converter", {
options: { operation: "excel-to-json", headerRow: 1, flatten: true }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "data-converter", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.