how to access json data fetched from sharepoint list in javascript array -


i unable filter json data fetched sharepoint list match , delete particular value. value of stringdata is:

"\"[{alllinks:\\\"link9\\\",linkurl:\\\"http://www.link9.com\\\"},{alllinks:\\\"link6\\\",linkurl:\\\"http://www.link6.com\\\"}]\"" 

this code:

function removeselecteditemfromlist(x){ $.ajax({     url:  url,     type: "get",     headers: {"accept": "application/json;odata=verbose"},     success: function (data) {                     var stringdata = json.stringify(data.d.results[0].alllinks);                   alert(stringdata);         for(var i=0; i<stringdata.length; i++){             if(stringdata[i].alllinks === x){                 stringdata.splice(i,1);                 alert(i);                 break;             }}                                 },     error: function() {         alert('fail');     } });} 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -