Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Django additions for JSON

Project Description


JSON library for working with django + json



To install you can use pip:

pip install django-jsonify

Then add jsonify to django settings.INSTALLED_APPS


If you want to convert varianble in django template, you can use jsonify filter:

{% load jsonify %}

{% block content %} <script type="text/javascript">
    <![CDATA[ var items = {{ items|jsonify }}; ]]></script>
{% endblock %}

If you want to return JSON data from view, you can use @ajax_request decorator

from jsonify.decorators import ajax_request

def my_view(request):
    news = News.objects.all()
    news_titles = [entry.title for entry in news]
    return {'news_titles': news_titles}
Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-jsonify-0.3.0.tar.gz (2.5 kB) Copy SHA256 Checksum SHA256 Source Sep 8, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting