microsoft / microsoft/markitdown
Unable to convert JSON to markdown(produces output file with identical to input conten)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 186k
- Forks
- 13.7k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 49
Description
Hi!
I am trying to convert a JSON file to Markdown. I am using the latest master(at the moment 0.1.2).
Installed with uv:
uv venv --python=3.12 .venv
source .venv/bin/activate
uv pip install -e 'packages/markitdown[all]'
Then run with
(.venv) ➜ markitdown git:(main) ✗ markitdown input.json -o output.md
Expected result: markdown-formatted document
Actual result: plain JSON data in output.md file
input.json example
{
"total": 11,
"summary_by_risk": {
"medium": 3,
"high": 8
},
"summary_by_resolution": {
"open": 11
}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the provided input.json and the markitdown input.json -o output.md command, then trace the JSON conversion path from the CLI entry point. Compare output.md with the expected Markdown representation and add or update coverage for this example; done means JSON input no longer produces an unchanged JSON file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100