Part of my json array
var videos = $j.parseJSON(' [ { "privacy":"public", "id":"1169341693" }, { "privacy":"private", "id":"803641223" }, { "privacy":"public", "id":"1300612600" }, ......
When i console.log the item i get
[Object, Object, Object, β¦] 0: Object privacy: "public" id: "1169341693" 1: Object privacy: "private" id: "803641223" 2: Object privacy: "public" id: "1300612600"
I also have a unique identifier that I want to find
var uniqueId = 803641223;
I want to find the correct id in my video array and delete the entire array. So in this case, I want my last video array to contain only 2 objects instead of 3:
var videos = $j.parseJSON(' [ { "privacy":"public", "id":"1169341693" }, { "privacy":"public", "id":"1300612600" }, ......
My problem is how to get into an array to do my splicing. I prefer to do this with jQuery
Any help please?
Lelly source share