mysql> select * from test;
+----+----------------------------+
| id | array_test |
+----+----------------------------+
| 2 | [1, 2, "asd", true] |
| 3 | {"0": "false", "1": "one"} |
+----+----------------------------+
2 rows in set (0,00 sec)
SELECT id, CAST(array_test AS CHAR) array_test
FROM test
WHERE JSON_OVERLAPS(array_test, CAST('[2]' AS JSON));