json.reez.cc

json --convert

Convert JSON ⇄ YAML ⇄ CSV

Turn JSON into YAML, CSV or TypeScript interfaces, and YAML or CSV back into JSON. Slightly broken JSON is repaired on the way in.

input.json

Paste something or load the sample.

output.yaml

Converted output appears here.

Good to know

JSON → CSV expects an array of objects. Nested objects become columns like owner.name, arrays inside a cell stay JSON. CSV → JSON reads the first row as column names, detects the delimiter and turns numbers, true,false and empty cells into real values. Values such as 007 or 20-digit IDs stay text so nothing gets lost.

TypeScript types merges all elements of an array into one interface: fields that are missing somewhere become optional, mixed values become a union.