mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Added a JSON serializer, a few more tests, and a couple more lines of docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
963d88a809
commit
c9032ab07f
7 changed files with 211 additions and 12 deletions
|
@ -78,8 +78,25 @@ The Django object itself can be inspected as ``deserialized_object.object``.
|
|||
Serialization formats
|
||||
---------------------
|
||||
|
||||
Django "ships" with a few included serializers, and there's a simple API for creating and registering your own...
|
||||
Django "ships" with a few included serializers:
|
||||
|
||||
.. note::
|
||||
========== ==============================================================
|
||||
Identifier Information
|
||||
========== ==============================================================
|
||||
``xml`` Serializes to and from a simple XML dialect.
|
||||
|
||||
... which will be documented once the API is stable :)
|
||||
``json`` Serializes to and from JSON_ (using a version of simplejson_
|
||||
bundled with Django).
|
||||
|
||||
``python`` Translates to and from "simple" Python objects (lists, dicts,
|
||||
strings, etc.). Not really all that useful on its own, but
|
||||
used as a base for other serializers.
|
||||
========== ==============================================================
|
||||
|
||||
.. _json: http://json.org/
|
||||
.. _simplejson: http://undefined.org/python/#simplejson
|
||||
|
||||
Writing custom serializers
|
||||
``````````````````````````
|
||||
|
||||
XXX ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue