Records with a nested object
Input
[{"id":1,"user":{"name":"Ada"}},{"id":2,"user":{"name":"Bob"}}]Output
| id | user.name |
| --- | --------- |
| 1 | Ada |
| 2 | Bob |The nested user object becomes a dotted column name.
Turns { "user": { "name": x } } into a user.name column.
This turns a JSON array of objects into a Markdown table with aligned columns, ready to paste into a README, a pull request description or a wiki page. Keys become headers and each record becomes a row.
It is the quickest way to document an API response or a configuration set without building the table by hand.
Each example below is executed against this tool by the test suite, so what you see is what the tool actually produces.
Input
[{"id":1,"user":{"name":"Ada"}},{"id":2,"user":{"name":"Bob"}}]Output
| id | user.name |
| --- | --------- |
| 1 | Ada |
| 2 | Bob |The nested user object becomes a dotted column name.
The details that decide whether a conversion is correct, and where information can be lost without any error being raised.