Opened 16 years ago
Closed 14 years ago
#10920 closed Uncategorized (invalid)
json serializer should not return javascript array
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.