When dealing with JSON arrays, the array elements are “flattened” so that each
element can be searched individually. This means that if a JSON array is
encountered, each element in the array is treated as a separate value and
indexed accordingly. For example, given the following JSON structure: