In MariaDB, JSON_CONTAINS_PATH()
is a built-in function that indicates whether a given JSON document contains data at the specified path or paths.
It returns 1
if the document does contain data at the specified path/s, 0
if it doesn’t, and NULL
if any of the arguments are NULL
.