Can anyone suggest the most efficient way to filter out objects from JSON data that contain a specific term or keyword?
Here's an example of my JSON data:
json = [{
"name":"John",
"age":30,
"cars":"BMW"
},
{
"name":"Micheal",
"age":30,
"cars":"Ford,BMW"
},
{
"name":"Andy",
"age":29,
"cars":"Ford"
},
{
"name":"Andy",
"age":29,
"cars":"Ford,Toyota"
}];
I need to remove any objects that include the keyword "BMW".