Skip to main content

Convert JSON records into a Markdown table

Turn an array from an API response into a table that can be pasted into a README or issue description.

  1. Arrange JSON records into CSV columns

    JSON to CSV

  2. Render the columns as a Markdown table

    CSV to Markdown Table

Run both steps

What to check in the example

The three example records become three Markdown body rows. The second item, Pens, blue, stays in a single table cell.

Download the source example

Working with your own file

Use an array of objects for the table. Markdown is a display format and does not retain JSON value types.