I have an array were every element (which is a product) has the key "categories", which is an array. I want to get every product that has a category name of "Jolly Rancher"

Here is a small snippet of the json.

```
[
  {
    "id": 7308,
    "name": "JOLLY RANCHER HARD CANDY TROPICAL 368G",
    "categories": [
      { "id": 243, "name": "Brands", "slug": "brands" },
      { "id": 273, "name": "Jolly Rancher", "slug": "jolly-rancher" },
      { "id": 152, "name": "Sweets", "slug": "sweets" }
    ],
  },
  {
    "id": 7307,
    "name": "HERRS DEEP DISH PIZZA 28.4G",
    "categories": [
      { "id": 243, "name": "Brands", "slug": "brands" },
      { "id": 153, "name": "Crisps", "slug": "crisps" },
      { "id": 268, "name": "Herr's", "slug": "herrs" }
    ],
  },
 {
    "id": 6319,
    "name": "JOLLY RANCHER CANDY 396G",
    "categories": [
      { "id": 243, "name": "Brands", "slug": "brands" },
      { "id": 273, "name": "Jolly Rancher", "slug": "jolly-rancher" },
      { "id": 152, "name": "Sweets", "slug": "sweets" }
    ]
  }
]

```

And here is what I have so far:

```
import productsJson from "../data/products.json";

const result = productsJson.filter(product => product.categories);
console.log(result);

```

Which will return everything from the json. This makes sense as it is filtering all the products that have the key "categories which they all do. It is here I am stuck.

If I do the following I will get an empty array.

```
const result = productsJson.filter(product => product.categories.name === "Jolly Rancher");
console.log(result);

```

What am I missing here?