in the request you need to install Accept: application / json, if you have json support then it will automatically send the response to json,
type: "GET", url: "admPlantParametersViewEdit.aspx/GetResult", contentType: "application/json; charset=utf-8", Accept: application/json,
then in the response header you should see
content-type:application/json
not content type: text / html
Anshul nigam
source share