Opened 15 years ago
Last modified 15 years ago
#13909 closed
Info on using "bare" json module in "Serializing Django Objects" — at Version 1
| Reported by: | JonathanHayward | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 1.2 |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
http://docs.djangoproject.com/en/dev/topics/serialization/ covers how to serialize certain data, namely QuerySets and other model-based data, but it does not appear to contain or cross-reference how one would use the "bare" json module and json.dumps (not serializers.get_serializer('json')()-created objects) to serialize a basic concoction of one or more strings, numbers, hashes, and lists.
In terms of "information scent", the page is a natural search result for django serialization which people could find if they are looking how to serialize JSON-like data for Ajax use. Ideally that page should cross-reference, or possibly contain, how to do basic serialization to JSON for constructions from strings/numbers/hashes/lists, particularly as what you get from serializers.get_serializer('json')() has an allergic response to being asked to serialize non-iterable data.
Change History (1)
comment:1 by , 15 years ago
| Description: | modified (diff) |
|---|---|
| Summary: | [Enhancement] Cross-reference to "bare" json module suggested for "Serializing Django Objects" → Info on using "bare" json module in "Serializing Django Objects" |
| Triage Stage: | Unreviewed → Accepted |
A brief explanation and an example would be helpful, since this is a natural place for people to look for this type of information.