All pages
Powered by GitBook
1 of 1

Loading...

JSON_ARRAY

Create a JSON array. This function evaluates a list of values and returns a JSON array containing those values.

Syntax

JSON_ARRAY([value[, value2] ...])

Description

Returns a JSON array containing the listed values. The list can be empty.

Example

See also

  • , the CONNECT storage engine function

This page is licensed: CC BY-SA / Gnu FDL

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]         |
+--------------------------------------------------+
JSON_MAKE_ARRAY