JSON_OBJECT
Create a JSON object. This function evaluates a list of key-value pairs and returns a JSON object containing those pairs.
Syntax
JSON_OBJECT([key, value[, key, value] ...])Description
Example
SELECT JSON_OBJECT("id", 1, "name", "Monty");
+---------------------------------------+
| JSON_OBJECT("id", 1, "name", "Monty") |
+---------------------------------------+
| {"id": 1, "name": "Monty"} |
+---------------------------------------+See also
Last updated
Was this helpful?

