Data Mapping Transformer (JSON and CSV)
Load sample data, drag source fields onto target paths, chain format steps such as trim, date or number, and export the reshaped rows as JSON, NDJSON or CSV.
Funziona nel tuo browser. I tuoi file non lasciano mai il dispositivo. Scopri come verificarlo
…
Come si usa
- 1Load data
Drop a JSON, NDJSON or CSV file or paste sample rows.
- 2Check the rows
Confirm the row count and set the array path if needed.
- 3Add rules
Press + Rule and type a target path such as buyer.name.
- 4Choose sources
Drag a field chip onto a rule, or tap a chip and press Use.
- 5Add format steps
Pick steps like Date format or To number and set their options.
- 6Export
Choose JSON, NDJSON or CSV, then download the output and save the mapping.
Informazioni su questo strumento
Integration work is mostly translation. A web shop exports orders with customer.first and customer.last, the accounting system wants a single buyer name; a CRM sends dates as 05/03/2024, the warehouse API expects 2024-03-05; a spreadsheet has Paid as yes or no, the database column is a boolean. Writing a script for each feed is slow, and generic ETL suites are heavy for a one-off job. This transformer gives you a visual mapping table instead. Load a JSON array, a JSON object that contains an array, newline-delimited JSON or a CSV file. Every leaf field appears as a chip, including nested paths such as customer.email and array members such as items[].sku. Each mapping rule has a target path, which may be nested, a source and an ordered list of format steps. You see the value of every rule for the first row while you work, the full output in JSON, NDJSON or CSV below, and you can save the whole mapping as a JSON file to run again on next month's export.
Sources
A rule takes its value from one field, from several fields joined with a separator, from a template where field paths sit inside curly braces, or from a fixed value such as the name of the source system. Templates are the quickest way to build values like {customer.first} {customer.last} or an address line from four columns.
Format steps
Steps run top to bottom, so the output of one is the input of the next. Text steps trim and collapse spaces, change case, make a slug or replace text. Number steps strip currency symbols and thousands separators before parsing, round to a number of decimals or keep only the integer. Boolean conversion understands yes, no, y, n, 1, 0, on, off and common German, Spanish and French words. Date conversion reads day-first, month-first or year-first input and writes ISO dates, full ISO date-times, day-first or month-first text, or Unix seconds. Split takes one part of a value, Map replaces codes with labels, and Default fills empty values.
Working on a phone
Dragging chips works with a mouse. On touch screens tap a source chip first; every rule then shows a Use button that assigns the chip. For a join rule the field is appended to the list, and for a template it is appended in braces.
Limits
Each rule produces one value per input row; the tool does not explode arrays into several output rows or aggregate rows into groups. Dates without a year, time zones other than UTC and locale month names are not parsed. It is not a validator for a target schema, so check required fields in the system that receives the data.
Esempio svolto
An online shop exports 2 orders as JSON. Seven rules map them: id to orderId; a template {customer.first} {customer.last} with Title Case to buyer.name, giving Ana Garcia and Li Wei; customer.email with Trim and lowercase, turning " [email protected] " into [email protected]; ordered with Date format from Day/Month/Year to 2024-03-05; total with To number, turning "1,249.90" into 1249.9; paid with To true/false; and a fixed value webshop for source. The CSV tab then shows 2 rows with the columns orderId, buyer.name, buyer.email, date, amount, isPaid and source, and Save mapping stores the 7 rules for the next export.
In breve
- Categoria: Sviluppo e dati
- Funziona nel browser, senza registrazione né caricamento.
- Le informazioni che inserisci restano sul tuo dispositivo.
- Disponibile in inglese.
- Contenuto rivisto l'ultima volta il:
- Fonte ufficiale: RFC 8259 (JSON) and RFC 4180 (CSV)
Domande frequenti
What input formats can I load?
JSON arrays, JSON objects that contain an array (the first array of objects is found automatically, or type its path), newline-delimited JSON, and CSV or TSV with a header row.
How do I create nested output?
Write a dotted target path such as buyer.address.city. Objects are created as needed, and a number in the path such as lines.0.sku creates an array position.
Can I reuse a mapping?
Yes. Save mapping downloads a JSON file with the rules, the array path and the empty-value setting. Load mapping restores it on another day or another computer.
What does auto-map do?
Paste the field names your target system expects. The tool adds one rule per name and links it to the source field with the same or the most similar name, ignoring case, underscores and hyphens.
Why is a value null?
Conversion steps return null when the input cannot be read, for example To number on a word. Add a Default step before it, or switch on Leave out empty values to drop such fields.
Is my data uploaded?
No. Files are read by this page in your browser and the mapping is kept in local storage on this device only.
