Convert JSON to MD
Turn JSON files into Markdown. GitHub-flavored Markdown that escapes what Markdown would read as formatting, so values such as *note*, # or <b> show as written; a value with line breaks keeps them, and one with indented lines becomes a code block.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop JSON files on the dialor turn it to pick what to do
JSON becomes a readable Markdown document.Every key and value is kept, laid out as key lines, headings and tables.
What you get
One MD file. Each object lists its plain values first as key: value. Small objects and lists of plain values sit nested under their key.
The larger parts follow under headings named after their keys. Headings go down six levels, and nested lists take over below that.
How lists are written
A list of objects that hold only plain values becomes one table. It has a column for every key in first-seen order, and numbers are aligned right.
A list of lists of plain values becomes a table without a header row. The objects of any other list each get a heading numbered from 1.
What stays exact
Every key and value is written exactly as the file has it. Long numbers are not rounded, and dates stay text. Keys keep their order.
When it stops
A file with more than 100,000 values fails with
resource_limit. A key repeated in one object fails withinput_corrupted.
JSON and MD.What each format is.
The formats
JSON
JSON, the data format of every API.
- Extensions
- .json
- MIME type
- application
/json - Kind
- Text and data
Markdown
Plain text with light markup for headings, lists, links and code. What agents and developers write in.
- Extensions
- .md .markdown .mdown
- MIME type
- text
/markdown - Kind
- Text and data
In your code.The same JSON to MD conversion through the API, for your app or your agent.
$ cv convert report.json report.md$ cv convert report.json report.mdQuestions.What people ask about JSON to MD.
No. Every value is written exactly as the file has it, so long numbers are not rounded.
No. Dates stay text, as they are in the JSON file.
If the objects hold only plain values, the list becomes one table. Each key gets a column, in the order it is first seen.
A key is repeated in one object. The conversion stops with input_corrupted when that happens.