Opened 16 years ago
Closed 14 years ago
#10920 closed Uncategorized (invalid)
json serializer should not return javascript array
Reported by: | j_king | Owned by: | nobody |
---|---|---|---|
Component: | Core (Serialization) | Version: | dev |
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: | no |
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 by , 16 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 14 years ago
Easy pickings: | unset |
---|---|
Resolution: | → invalid |
Severity: | → Normal |
Status: | new → closed |
Type: | → Uncategorized |
Note:
See TracTickets
for help on using tickets.
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.