In MariaDB, JSON_CONTAINS()
is a built-in function that allows you to find out whether a specified value is found in the given JSON document, or at a specific path within the document.
It returns 1
if it does contain the value, 0
if it doesn’t, and NULL
if any of the arguments are NULL
.