Data format guides
See how XML, JSON, CSV, and YAML conversions handle real inputs.
XML to JSON: Keep Attributes and Text
Keep a product ID such as 0007 as an attribute string and retain the element's text alongside it.
XML to JSON: Normalize Single and Repeated Items
Handle the shape change when an XML feed with one item becomes a feed with multiple items.
JSON to CSV: Keep Columns From Later Rows
Align JSON objects to the same columns before exporting so fields introduced by later rows appear in the CSV.
JSON to YAML: Keep IDs and Booleans From Changing Type
Check that identifiers like 0012 and the string false remain strings after converting and reading the YAML back.
How to Fix a Trailing Comma in JSON
Find and remove a comma after the last object member or array item while keeping separators and quoted text intact.