I have JSON Object that looks something like the below object, this object can go on for days. So I am wondering is there anyway I can delete full set a set being the equiva
Simply just pass the index
delete locations[0];
You go through a normal JSON iteration like this
jQuery.each(locations, function(i, val) {
if(val.zipcode == "yourvalue") // delete index
{
delete locations[i];
}
});
something like that. are you looking for an idea or a complete function.
Here is the jsFiddle