Turn a CSV inventory into a YAML list
Turn spreadsheet records into a readable YAML fixture with stable field names for review.
- Convert header-based CSV rows to objects
CSV to JSON
- Serialize the objects as a YAML sequence
JSON to YAML
Run both steps
What to check in the example
The sku column becomes a key in each of three YAML items. The B04 record retains its South zone and the comma inside its item name.
Download the source exampleWorking with your own file
Field names must be present and unique. Values start as CSV text, so inspect quantity types before using the YAML as application configuration.