Opened 8 years ago

Closed 6 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:

Description

http://directwebremoting.org/blog/joe/2007/03/05/json_is_not_as_safe_as_people_think_it_is.html

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 8 years ago by anonymous

Triage Stage: UnreviewedDesign decision needed

comment:2 Changed 6 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