I am trying to display the name of persons whose favorite color is pink from an array of multiple jsons. Which method or logic I should use in javascript or jQuery?
var person = [{
"name":"Angel",
"age":23,
"color":[ "pink", "purple", "white" ]
},
{
"name":"Harry",
"age":20,
"color":[ "pink", "yellow" , "red" ]
},
{
"name":"Ella",
"age":21,
"color":[ "green", "gray", "black" ]
}];