Answers for "how to convert json to javascript object in ajax success"

0

how to convert json to javascript object in ajax success

$.ajax({
    url: "http://localhost:11141/Search/BasicSearchContent?ContentTitle=" + "تهران",
    type: 'GET',
    cache: false,
    success: function(result) {
        //  alert(jQuery.dataType);
        if (result) {
            //  var dd = JSON.parse(result);
            alert(result[0].Id)
        }

    },
    error: function() {
        alert("No");
    }
});
Posted by: Guest on August-10-2021

Code answers related to "how to convert json to javascript object in ajax success"

Code answers related to "Javascript"

Browse Popular Code Answers by Language