Changes between Initial Version and Version 1 of Ticket #21113, comment 15
- Timestamp:
- Dec 30, 2015, 5:08:49 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #21113, comment 15
initial v1 1 1 I know this is very late to the party, and it's not that critical of an issue, but generally it is considered good form [citation-needed] to ensure the top level of a JSON structure is an object/dictionary, rather than a list, string, int, etc. `django.http.response.JsonResponse` for example considers anything except a dict to be 'unsafe'. 2 2 3 The change is simple... just use `{' changes':[ ...]}` rather than simply `[...]`, but this does involve changing the entire patch. 😦3 The change is simple... just use `{'entries':[ ...]}`, or `{'additions':[...], 'deletions':[...], ...}` rather than simply `[...]`, but this does involve changing the entire patch. 😦