where json_extract [*] mysql code example
Example 1: mysql json get value
SELECT JSON_EXTRACT('{"a": 1, "b": 2, "c": 3}', '$.b') AS 'Result';
Example 2: mysql json extract escape
SELECT JSON_EXTRACT('{"user.name": "Aztalan"}', '$."user.name"');
Example 3: mysql JSON_SEARCH LIKE
$query=$query->whereRaw('UPPER(education->"$[*].profession") LIKE UPPER("%' . $profession . '%")');