In MySQL, the JSON_CONTAINS()
function tests whether or not a specified value is found in the given JSON document or, optionally, at the specified path within the document.
If the value is found, JSON_CONTAINS()
returns 1
, otherwise it returns 0
.