Comparison
msgspec vs simplejson vs superjson vs ujson
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML.
Actively maintained. Last release 4 days ago, commits in 19 of the last 26 weeks. A safe choice.
pip install msgspecSimple, fast, extensible JSON encoder/decoder for Python
Actively maintained. Last release 3 weeks ago, commits in 10 of the last 26 weeks. A safe choice.
pip install simplejsonExtendable json encode/decode library.
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install superjsonUltra fast JSON encoder and decoder for Python
Actively maintained. Last release 4 weeks ago, commits in 13 of the last 26 weeks. A safe choice.
pip install ujsonIn short
- superjson looks abandoned: avoid it for new projects.
- simplejson is the most used: 51.9M downloads a month.
- Maintenance is comparable: ujson 93, simplejson 83, msgspec 83 on Pythie’s Index.
- msgspec is growing fastest: downloads +17% over the last month.
- Safe default for a new project: simplejson.
Side by side
| Metric | msgspec | simplejson | superjson | ujson |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 83 | Pythie’s Index: 83 | Pythie’s Index: 12 | Pythie’s Index: 93 |
| Verdict | Actively maintained | Actively maintained | Likely abandoned | Actively maintained |
| Downloads / month | 41.6M | 51.9M | 113.1K | 29.2M |
| Downloads, month over month | +17% | +11% | +124% | +3% |
| GitHub stars | 4.2K | 1.7K | 4 | 4.5K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 944 | 1K | 4 | 811 |
| Last release | Nov 28, 2026 | Nov 10, 2026 | Jan 30, 2022 | Nov 3, 2026 |
| Releases, 12 months | 4 | 7 | 0 | 5 |
| Weeks with commits | 19 / 26 | 10 / 26 | 0 / 26 | 13 / 26 |
| Recent contributors | 36 | 26 | 1 | 7 |
| First release | Feb 2021 | Dec 2005 | May 2017 | Jun 2011 |
| Python versions | 3.10 – 3.15 | 3.9 – 3.15 | 3.6 – 3.9 | 3.10 – 3.15 |
| License | BSD-3-Clause | AFL-2.1 OR MIT | MIT | BSD-3-Clause AND TCL |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.