Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery AJAX JSON response returns key "d"

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

Why is this?

like image 412
Curtis Avatar asked Nov 18 '10 13:11

Curtis


Video Answer


2 Answers

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.

like image 177
Amr Elgarhy Avatar answered Sep 18 '22 18:09

Amr Elgarhy


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.

like image 45
debasish Avatar answered Sep 16 '22 18:09

debasish