Curtis
Curtis

Reputation: 103388

jQuery AJAX JSON response returns key "d"

When I make a jQuery AJAX JSON request, it responds with a "d" attribute.

Why is this?

Upvotes: 6

Views: 8539

Answers (2)

Amr Elgarhy
Amr Elgarhy

Reputation: 69012

here a good article about it http://encosia.com/2009/06/29/never-worry-about-asp-net-ajaxs-d-again/

“.d” what? If you aren’t familiar with the “.d” I’m referring to, it is simply a security feature that Microsoft added in ASP.NET 3.5’s version of ASP.NET AJAX. By encapsulating the JSON response within a parent object, the framework helps protect against a particularly nasty XSS vulnerability.

Upvotes: 16

debasish
debasish

Reputation: 29

If you aren’t familiar with the “.d” I’m referring to, it is simply a security feature that Microsoft added in ASP.NET 3.5’s version of ASP.NET AJAX. By encapsulating the JSON response within a parent object, the framework helps protect against a particularly nasty XSS vulnerability.

Upvotes: 2

Related Questions