Answers for "how to get json data in jquery ajax"

5

how to set json type jquery ajax

$.ajax({
    type: "POST",
    contentType: "application/json",
    url: 'http://localhost:16329/Hello',
    data: { name: 'norm' },
    dataType: "json"
});
Posted by: Guest on June-30-2020
0

ajax returning html instead of json

you probebly added a "JSON.parse()" search for this in your code and if its there delet it
Posted by: Guest on February-08-2022

Code answers related to "how to get json data in jquery ajax"

Code answers related to "Javascript"

Browse Popular Code Answers by Language