{ "info": { "author": "fahad", "author_email": "fahadsiddiqui707@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3" ], "description": "django-jsonfield\n----------------\n\ndjango-jsonfield is a reusable Django field that allows you to store validated JSON in your model.\n\nIt silently takes care of serialization. To use, simply add the field to one of your models.\n\n**New: Python 3 & Django 1.7 supported!**\n\n**PostgreSQL?: Use https://github.com/bradjasper/django-jsonfield/tree/postgresql for now**\n\nInstall\n-------\n\n.. code-block:: python\n\n pip install jsonfield\n\n\nUsage\n-----\n\n.. code-block:: python\n\n from django.db import models\n from jsonfield import JSONField\n\n class MyModel(models.Model):\n json = JSONField()\n\nAdvanced Usage\n--------------\n\nBy default python deserializes json into dict objects. This behavior differs from the standard json behavior because python dicts do not have ordered keys.\n\nTo overcome this limitation and keep the sort order of OrderedDict keys the deserialisation can be adjusted on model initialisation:\n\n.. code-block:: python\n\n import collections\n class MyModel(models.Model):\n json = JSONField(load_kwargs={'object_pairs_hook': collections.OrderedDict})\n\n\nOther Fields\n------------\n\n**jsonfield.JSONCharField**\n\nIf you need to use your JSON field in an index or other constraint, you can use **JSONCharField** which subclasses **CharField** instead of **TextField**. You'll also need to specify a **max_length** parameter if you use this field.\n\n\nCompatibility\n--------------\n\ndjango-jsonfield supports Python 2.7-Python 3.3 and Django 1.4+\n\n**Why doesn't it support Python 2.6?**\n\nYou actually might be OK if you don't use an OrderedDict, but there are some issues with the simplejson API that make it cumbersome to support.\n\n**Why doesn't it support Django 1.3?**\n\nThere was a bug that could only be fixed by a feature in Django 1.4. `Read More`_ if you're interested in the details.\n\n.. _Read More: https://github.com/bradjasper/django-jsonfield/issues/33\n\n\nTravis CI\n---------\n\n.. image:: https://travis-ci.org/bradjasper/django-jsonfield.png?branch=master\n\n\nContact\n-------\nWeb: http://bradjasper.com\n\nTwitter: `@bradjasper`_\n\nEmail: `contact@bradjasper.com`_\n\n\n\n.. _contact@bradjasper.com: mailto:contact@bradjasper.com\n.. _@bradjasper: https://twitter.com/bradjasper\n\nChanges\n-------\n\nv0.9.23, 9/3/2014 -- Allowed tests to run in older versions of Django\n\nv0.9.22, 7/10/2014 -- Added Django 1.7 support\n\nv0.9.21, 5/26/2014 -- Added better support for Python 3 and tests for regex lookups\n\nv0.9.20, 11/14/2013 -- Fixed load_kwargs on form fields, added Django 1.6 to automated tests\n\nv0.9.19, 09/18/2013 -- Fixed changes to django.six.with_metaclass that broke django-jsonfield for Django 1.6\n\nv0.9.18, 08/23/2013 -- Fixed bugs with South datamigration\n\nv0.9.17, 06/07/2013 -- Fixed bugs in JSONCharField admin form\n\nv0.9.14/15/16, 04/29/2013 -- Python 3 support added!\n\nv0.9.11/12/13, 03/26/2013 -- PyPi changes\n\nv0.9.9/10/11, 03/21/2013 -- PyPi changes\n\nv0.9.8, 03/21/2013 -- Added support for native PostgreSQL JSON data type\n\nv0.9.7, 03/21/2013 -- Fix bug #33 where JSONField didn't correctly store some values inside of\nstrings", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fahadsiddiqui007", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "json-trim", "package_url": "https://pypi.org/project/json-trim/", "platform": "", "project_url": "https://pypi.org/project/json-trim/", "project_urls": { "Homepage": "https://github.com/fahadsiddiqui007" }, "release_url": "https://pypi.org/project/json-trim/0.1/", "requires_dist": null, "requires_python": "", "summary": "A reusable Django field that allows you to store validated JSON in your model.", "version": "0.1" }, "last_serial": 3309540, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8078c2a131d95ab076dd2990af8fbbfb", "sha256": "37ca16fc6fe5498eef11bcc5240b2ba0bf6a4424013ac6d0c99883559e200e00" }, "downloads": -1, "filename": "json-trim-0.1.tar.gz", "has_sig": false, "md5_digest": "8078c2a131d95ab076dd2990af8fbbfb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7306, "upload_time": "2017-11-06T14:19:51", "url": "https://files.pythonhosted.org/packages/3a/1b/b1c540b909d88488cf566a1e44fdd7178a08674ad08370b5f2e1271b6037/json-trim-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8078c2a131d95ab076dd2990af8fbbfb", "sha256": "37ca16fc6fe5498eef11bcc5240b2ba0bf6a4424013ac6d0c99883559e200e00" }, "downloads": -1, "filename": "json-trim-0.1.tar.gz", "has_sig": false, "md5_digest": "8078c2a131d95ab076dd2990af8fbbfb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7306, "upload_time": "2017-11-06T14:19:51", "url": "https://files.pythonhosted.org/packages/3a/1b/b1c540b909d88488cf566a1e44fdd7178a08674ad08370b5f2e1271b6037/json-trim-0.1.tar.gz" } ] }