Skip to main content

django-jsonify

Abstract

JSON library for working with django + json

Donors

Installation

To install you can use pip:

pip install django-jsonify

Then add jsonify to django settings.INSTALLED_APPS

Usage

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

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

Metadata

Release files for django-jsonify 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-jsonify 0.3.0
File Size Uploaded Provenance Actions
django-jsonify-0.3.0.tar.gz 2.5 kB Without provenance Details for django-jsonify-0.3.0.tar.gz

Release files / django-jsonify-0.3.0.tar.gz

Download URL django-jsonify-0.3.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
51d7cb8cb5e1fd4b32b76b4e200833f499aad5b01feb2de8c1e3b3507f1bbbc4
BLAKE2b-256 checksum
How to use checksums
cad4c8dc84ffb33b1dcb969d3db0715b92dc9d662eb7cb722fc919a42a57d77e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-jsonify 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page