JSON to Markdown Table
Example
Input:
[{"name": "Ali", "age": 30}, {"name": "Sara", "age": 25}]Output:
| name | age | | --- | --- | | Ali | 30 | | Sara | 25 |
About this converter
Documentation wants tables; data lives in JSON. The generator takes the union of keys across the array items as columns (so ragged objects extend the table instead of breaking it), renders numbers and booleans plainly, serializes nested values as compact JSON in the cell, and escapes literal pipes in values as \| so one bad cell cannot shatter the table. Missing keys render as empty cells. It is the faithful inverse of this site's Markdown Table to CSV path — tables built here parse back losslessly.
Frequently Asked Questions
What if items have different keys?
Columns are the union of all keys; rows show empty cells where a key is absent.
How are nested objects shown?
As compact JSON in the cell — readable and recoverable, instead of "[object Object]".