I have a structure - column visitors
[{"firstname":"john","lastname":"penn"},{"firstname":"mickey","lastname":"smith"},{"firstname":"darth","lastname":"vader"}]
I would like to find out if there is a john among all these people listed inside this json.
My quers does not find anything (no rows found)
SELECT conference_name FROM conference WHERE JSON_EXTRACT(visitors, "$[*].firstname") = 'john';
Is this possible to achieve using just json_extract and NOT json_search since it is very slow with big tables?