Convert tab-separated values (with header) to a JSON array. Use sort_keys=True.
Read TSV (tab-separated) with a header row. Print one JSON line: an array of objects, using `json.dumps(..., sort_keys=True)`.
Test input (tabs between fields):
name\tage
Alice\t30
Bob\t25
Expected output: `[{"age": "30", "name": "Alice"}, {"age": "25", "name": "Bob"}]`Sign in to save your code and track progress across devices.