MariaDB starting with 10.2.3
JSON functions were added in MariaDB 10.2.3.
JSON_SET(json_doc, path, val[, path, val] ...)
Updates or inserts data into a JSON document, returning the result, or NULL if any of the arguments are NULL or the optional path fails to find an object.
An error will occur if the JSON document is invalid, the path is invalid or if the path contains a * or wildcard.