Let’s say I have the following sample JSON coming form an external source:
{
“data”:{
“people”:[
{
“person_id”: 123,
“person_name”: ‘John’
},
{
“person_id”: 456,
“person_name”: ‘Mary’
},
],
“department”: ‘Finance’,
“contact_number”: '888-987-6543"
}
}
From my reading of indexes, it doesn’t look like I can build an array search on an array of objects. Do I need to restructure this somehow in order to search for person_id or person_name?