JSON functions were added in MariaDB 10.2.3.
JSON_ARRAY([value[, value2] ...])
Returns a JSON array containing the listed values. The list can be empty.
SELECT Json_Array(56, 3.1416, 'My name is "Foo"', NULL); +--------------------------------------------------+ | Json_Array(56, 3.1416, 'My name is "Foo"', NULL) | +--------------------------------------------------+ | [56, 3.1416, "My name is \"Foo\"", null] | +--------------------------------------------------+
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/json_array/