Turn a YAML stock list into JSON for review
Check the structure of a YAML sequence in a JSON-based tool.
Set up the example
Convert the three YAML list items and inspect the first and last objects in the resulting array.
Check the result
Check that units remains numeric for the three stock records and that B04 remains text.
Run this task
Use your own file or download the practice input below. The checks on this page describe the practice result.
Continue with a related task
- Convert YAML to compact JSON
Parse the YAML document → Remove JSON formatting whitespace
- Find a trailing comma in a JSON fixture
- Turn a stock fixture into readable YAML
- Make a YAML copy of an XML stock feed