how to convert json to javascript object in ajax success

Solutions on MaxInterview for how to convert json to javascript object in ajax success by the best coders in the world

showing results for - "how to convert json to javascript object in ajax success"
Axel
27 Jan 2020
1$.ajax({
2    url: "http://localhost:11141/Search/BasicSearchContent?ContentTitle=" + "تهران",
3    type: 'GET',
4    cache: false,
5    success: function(result) {
6        //  alert(jQuery.dataType);
7        if (result) {
8            //  var dd = JSON.parse(result);
9            alert(result[0].Id)
10        }
11
12    },
13    error: function() {
14        alert("No");
15    }
16});
17