Changes between Initial Version and Version 1 of Ticket #21113, comment 15


Ignore:
Timestamp:
Dec 30, 2015, 5:08:49 PM (8 years ago)
Author:
Chris Cogdon

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21113, comment 15

    initial v1  
    11I 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'.
    22
    3 The change is simple... just use `{'changes':[ ...]}` rather than simply `[...]`, but this does involve changing the entire patch. 😦
     3The change is simple... just use `{'entries':[ ...]}`, or `{'additions':[...], 'deletions':[...], ...}` rather than simply `[...]`, but this does involve changing the entire patch. 😦
Back to Top