The following table lists the JSON functions supported by OceanBase Database in the current version.
| Function | Description |
|---|---|
| JSON_ARRAY | Creates a JSON array. |
| JSON_OBJECT | Creates a JSON object. |
| JSON_ARRAYAGG | Creates a JSON array by using the aggregate function. |
| JSON_OBJECTAGG | Creates a JSON object by using the aggregate function. |
| JSON_VALUE | Extracts the value of the JSON text at the specified path. The default return value is VARCHAR2(4000) or the value specified by the user. |
| JSON_QUERY | Extracts the value of the JSON text at the specified path. The default return value type is determined by the input data type. If the input data type is VARCHAR, the default output is VARCHAR. If the input data type is JSON, the default return value type is JSON. |
| JSON_EXISTS | Checks whether the field at the specified path in the JSON text exists or satisfies certain conditions. |
| JSON_TABLE | Converts JSON data into a two-dimensional table. |
| JSON_EQUAL | Checks whether the contents of two JSON texts are equivalent. |
| JSON_MERGEPATCH | Merges two JSON texts and replaces the values of duplicate keys. |
