Expected JSON shape
Best results come from a homogeneous array of objects, like a database query result:
[
{ "id": 1, "name": "Alice" },
{ "id": 2, "name": "Bob" }
]Mixed shapes still work — each unique key across all objects becomes a column, with empty cells where missing.