In MariaDB, JSON_MERGE() is a built-in function that merges two or more JSON documents and returns the result.
The JSON_MERGE() function has been deprecated, and to avoid future issues, you should use the JSON_MERGE_PATCH() function instead. The JSON_MERGE_PATCH() function is an RFC 7396-compliant replacement for JSON_MERGE().