<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/django-introducing-django-orjson-5h1b66fxp" -->

---
title: Django: introducing django-orjson | daily.dev
description: django-orjson is a new library that provides drop-in replacements for Django and Django REST Framework components backed by orjson, a Rust-powered JSON library...
canonical: https://daily.dev/posts/django-introducing-django-orjson-5h1b66fxp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Django: introducing django-orjson | daily.dev
og:description: django-orjson is a new library that provides drop-in replacements for Django and Django REST Framework components backed by orjson, a Rust-powered JSON library...
og:url: https://daily.dev/posts/django-introducing-django-orjson-5h1b66fxp
og:image: https://api.daily.dev/og/posts/5H1B66fxP.png
og:image:alt: Django: introducing django-orjson
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Django: introducing django-orjson

**[Adam Johnson](https://daily.dev/sources/adamj)** · 2 min read · 11 upvotes · 1 comments

## Summary

django-orjson is a new library that provides drop-in replacements for Django and Django REST Framework components backed by orjson, a Rust-powered JSON library offering 10x faster serialization and 2x faster deserialization compared to Python's built-in json module. It includes replacements for JsonResponse, test client classes, the json_script template tag, and more, all with 100% branch coverage. A related Django proposal for a pluggable JSON backend has also been opened to bring orjson support into Django itself.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://adamj.eu/tech/2026/07/15/introducing-django-orjson>

## Questions this post answers

### What is django-orjson and what does it replace in Django?

Django-orjson is a library providing drop-in replacements for Django and Django REST Framework components backed by orjson, a Rust-based JSON library. It includes an orjson-backed JsonResponse, a test client and test case classes whose response.json() uses orjson, and a replacement for Django's json_script template tag, among other components, all tested against currently supported Python and Django versions.

_daily.dev helps developers track new Django ecosystem libraries like django-orjson as they weigh performance upgrades._

### How much faster is orjson than Python's built-in json module?

Orjson is roughly 10 times faster at serialization and 2 times faster at deserialization compared to Python's built-in json module. It is implemented in Rust, which underlies its performance advantage over the pure-Python json standard library module, making it a near-free performance win in Django applications where JSON handling time can be significant.

_Developers evaluating Rust-backed Python libraries for performance gains can follow updates like this on daily.dev._

### Is there a proposal to add orjson support directly into Django core?

Yes, after django-orjson's initial release, Paolo Melchiorre opened a new feature proposal on Django's official new-features repository titled 'Pluggable JSON serialization/deserialization backend', listing all the places in Django that could use orjson. The proposal had gathered 14 thumbs-up reactions at the time it was reported, and community members are encouraged to add their thoughts to the discussion.

_Django developers weighing in on core language proposals can track discussions like this via daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@arminajdehnia** · 0 upvotes

> Is the GitHub repository at `https://github.com/mauricioabreu/django-rest-framework-orjson` the official source for the `djangorestframework-orjson` package?

## Similar posts on daily.dev

- [\#489: Or JSON?](https://daily.dev/posts/489-or-json--fp75bcfed) · Planet Python · 0 upvotes · 0 comments
- [Django: introducing django-msgspec](https://daily.dev/posts/django-introducing-django-msgspec-cibe2whmz) · Adam Johnson · 10 upvotes · 2 comments
- [JSON Parsing for Large Payloads: Balancing Speed, Memory, and Scalability](https://daily.dev/posts/json-parsing-for-large-payloads-balancing-speed-memory-and-scalability-pw8ccar6b) · Towards Data Science · 1 upvotes · 0 comments
- [Some notes on starting to use Django](https://daily.dev/posts/some-notes-on-starting-to-use-django-piqautomn) · Julia Evans · 0 upvotes · 0 comments
- [The Post-Heroku Django World](https://daily.dev/posts/the-post-heroku-django-world-o46mujbgp) · Django News · 1 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#performance](https://daily.dev/tags/performance), [#django](https://daily.dev/tags/django)

[View this post on daily.dev](https://daily.dev/posts/django-introducing-django-orjson-5h1b66fxp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Django: introducing django-orjson","url":"https://daily.dev/posts/django-introducing-django-orjson-5h1b66fxp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/django-introducing-django-orjson-5h1b66fxp"},"datePublished":"2026-07-15T09:56:57.228Z","dateModified":"2026-09-14T06:37:56.981Z","description":"django-orjson is a new library that provides drop-in replacements for Django and Django REST Framework components backed by orjson, a Rust-powered JSON library...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8f01a5514244be32bd0f94129f75d788?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8f01a5514244be32bd0f94129f75d788?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Adam Johnson","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Adam Johnson","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/bf70f4401c284aa5b628d1966029342c","url":"https://daily.dev/sources/adamj"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/django-introducing-django-orjson-5h1b66fxp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":11},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"python,performance,django","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Adam Johnson","item":"https://daily.dev/sources/adamj"},{"@type":"ListItem","position":3,"name":"Django: introducing django-orjson"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/django-introducing-django-orjson-5h1b66fxp","comment":[{"@type":"Comment","text":"Is the GitHub repository at https://github.com/mauricioabreu/django-rest-framework-orjson the official source for the djangorestframework-orjson package?","datePublished":"2026-07-16T07:10:58.811Z","url":"https://daily.dev/posts/5H1B66fxP#c-60tXuvHUQ","author":{"@type":"Person","name":"armin ajdehnia","url":"https://daily.dev/arminajdehnia","image":"https://lh3.googleusercontent.com/a/ACg8ocIPxWuXovS0USsoqfZqkgj9hR8I-KQ0dPvjB_AifsPMGAUd6NBB=s96-c"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/django-introducing-django-orjson-5h1b66fxp#faq","mainEntity":[{"@type":"Question","name":"What is django-orjson and what does it replace in Django?","acceptedAnswer":{"@type":"Answer","text":"Django-orjson is a library providing drop-in replacements for Django and Django REST Framework components backed by orjson, a Rust-based JSON library. It includes an orjson-backed JsonResponse, a test client and test case classes whose response.json() uses orjson, and a replacement for Django's json_script template tag, among other components, all tested against currently supported Python and Django versions. daily.dev helps developers track new Django ecosystem libraries like django-orjson as they weigh performance upgrades."}},{"@type":"Question","name":"How much faster is orjson than Python's built-in json module?","acceptedAnswer":{"@type":"Answer","text":"Orjson is roughly 10 times faster at serialization and 2 times faster at deserialization compared to Python's built-in json module. It is implemented in Rust, which underlies its performance advantage over the pure-Python json standard library module, making it a near-free performance win in Django applications where JSON handling time can be significant. Developers evaluating Rust-backed Python libraries for performance gains can follow updates like this on daily.dev."}},{"@type":"Question","name":"Is there a proposal to add orjson support directly into Django core?","acceptedAnswer":{"@type":"Answer","text":"Yes, after django-orjson's initial release, Paolo Melchiorre opened a new feature proposal on Django's official new-features repository titled 'Pluggable JSON serialization/deserialization backend', listing all the places in Django that could use orjson. The proposal had gathered 14 thumbs-up reactions at the time it was reported, and community members are encouraged to add their thoughts to the discussion. Django developers weighing in on core language proposals can track discussions like this via daily.dev."}}]}
```

