I use AJAX.Net to call ASP.Net PageMethod, which returns JSON serialized JSON data
{"d":"[{\"Fromaddress\":\"testfrom1@test.com\",\"Toaddress\":\"testto1@test.com\"},{\"Fromaddress\":\"testfrom2@test.com\",\"Toaddress\":\"testto2@test.com\"}]"}
The response header indicates the type of content as
"Content-Type application/json; charset=utf-8"
However, the data is only available as a string and does not seem to be available as JSON data from javascript. What do I need to do to work with returned data as JSON from javascript?
James source
share