Opened 9 years ago

Closed 7 years ago

#10920 closed Uncategorized (invalid)

json serializer should not return javascript array

Reported by: j_king Owned by: nobody
Component: Core (Serialization) Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX:


At the very least, it should return a top-level JSON object:

{response: [{pk: 1,
             some_field: "hi!"},
            {pk: 2,
             some_field: "hiya!"}]}

Change History (2)

comment:1 Changed 9 years ago by anonymous

Triage Stage: UnreviewedDesign decision needed

comment:2 Changed 7 years ago by Luke Plant

Easy pickings: unset
Resolution: invalid
Severity: Normal
Status: newclosed
Type: Uncategorized

This is not something that a JSON serializer should be concerned about - it is the responsibility of the app developer. JSON is not just used by web apps using AJAX.

Note: See TracTickets for help on using tickets.
Back to Top