Json asmx and that annoying d:

I looked through a lot of messages and could not determine how to get rid of the annoying d in the response coming from my asmx web service, as in {"d": {"Response": "OK", "Auth-Key" :. "JKPYZFZU"}}

This is created by a public UserDevice in my class, returning a Dictionary object.

I would be completely happy if the damn thing just did not put all this in object d!

+6
source share
2 answers

You are probably using some kind of framework that automatically wraps your json responses of your web service with the d element.

, Microsoft JSON d , AJAX-, JSON, , . , jQuery .

json ( 'd'), WCF "Raw" .

+1

JSON ['hello'] JavaScript, JSON {'d': ['hello'] } JavaScript. , , XSS-. .

, , . (: @user1334007, Chrome )

:

, . . β€˜d, JSON .

, JSON XSS. , - JSON, , . , , , javascript javascript. XSS ( ) JSON .

, (1) xss (good.com) - , (2) - JSON, GET (, bank.com/getaccounts), (3) (evil.com), , bank.com, good.com, (4) good.com, bank.com, .

JSON JavaScript , , . GET - ( GET). HTTP- ( ). webservice ASP.NET AJAX . , , .

+9

All Articles