tk.stas,
<script>
var people = [
{ "name": "bob", "dinner": [ "sushi", "pizza" ] },
{ "name": "john", "dinner": "sushi" },
{ "name": "john", "dinner": "hummus" }
];
var str = "sushi";
function fn(obj) {
return Object.values(obj).some(function(val) {
if(Array.isArray(val)) return fn(val);
return val.toUpperCase() == str.toUpperCase()
})
}
var obj = people.filter(fn);
document.write(JSON.stringify(obj, null, 4))
</script>