I am writing to seek help, how can I change the json data format of the following output. Currently, the data is outputting in the following format:
({
d:"[{\"Name\":\"NorthStar 2012-1\"}]"
})
However, I would like the data to outputted in the following json format:
[
"[{\"Name\":\"NorthStar 2012-1\"}]"
]
Any advice, as how I can do this?
Here is my ajax function below, for further reference:
$(document).ready(function () {
$.support.cors = true;
$.ajax({
type: "Post",
crossDomain: true,
contentType: "application/json; charset=utf-8",
url: "http://localhost:27335/test2.aspx/BindDatatable",
data: "{}",
dataType: "json",
...
Go to the complete details ...