Currently using MYSQL 5.7, soon to be migrating to 8.0. We have a json field in our database which has values which look like this:
[
{
"first_name":"bob",
"last_name":"lisserman"
},
{
"first_name":"bob",
"last_name":"rippleman"
},
{
"first_name":"joe",
"last_name":"roterlam"
}
]
I'm trying to write a query which finds records which contain an object in the array with both "first_name" = "bob" AND "last_name" = "rippleman"
Does JSON_CONTAINS support a search like this?