Skip to content

YAGIRO practice

Keep shipping identifiers and instructions through CSV export

Return three JSON records to a table, checking leading zeros, a long identifier, trailing decimal zeros, quotes and an embedded line break.

Make a prediction before exporting

Open shipping-records.json as text. All four values in every record are strings. Write down the first sku, serial and quantityText exactly: 00042, 9007199254740993 and 1.2300. The quantity field is an explicit text spelling in this exercise.

The second object writes its fields in a different sequence. Its sku is still 00043, and its instruction is Upper rack followed by a line feed and Keep dry. Check those name-value pairs before converting.

Export the same records in two dialects

Use JSON-to-CSV/TSV with comma first. Read the output as text and compare it with shipping.expected.csv. Switch to tab only after saving the first output, then compare with shipping.expected.tsv. Both results have one header and three data records.

In the first instruction, the comma stays inside a quoted field and the quote characters around ready are doubled in the serialized text. On parsing the output, the value must again contain one quote on either side of ready. The LF inside the second instruction must stay inside that one cell.

Compare values rather than visible lines

Use answer.json to compare all 12 decoded cells. The multi-line instruction means a text editor can show more physical lines than logical records. Do not count those lines as extra shipments.

The output header follows the first JSON object: sku, serial, quantityText, instruction. The second object’s different member order must not move its instruction into the sku column.

Check the next import separately

Open the result through your intended importer with the identifier and quantity columns explicitly treated as text. Compare the three recorded strings after import. CSV quoting alone does not preserve a receiving spreadsheet’s cell type.

Record the importer and settings in the export record. If an identifier loses its leading zeros there, keep the original JSON and investigate that import step. The exercise verifies format conversion; it does not authorize shipment or demonstrate compatibility with every spreadsheet.

Files for this exercise

Fictional table data. Follow the guide to distinguish inputs, saved table outputs and expected refusals. Keep both row groups and the original file.

Reference sources

Continue with a check