Skip to main content
This topic provides an overview of the JSON constructor functions, query functions, and processing functions, operators, and path expressions that are supported by the database. Tip Accelerate your queries with generated columns

JSON constructor functions

JSON constructor functions are used to construct JSON data, such as JSON objects and JSON arrays.

JSON query functions and processing functions

JSON query functions and processing functions are used to query and process JSON data. For example, you can use a path expression to locate an element in a JSON object.

JSON operators

The database supports the following JSON comparison operators: <, <=, >, >=, =, and !=. You can use these operators to query JSON data. However, it does not allow you to use IN to query JSON data. For more information about JSON operators, see JSON operators.

JSON path expressions

You can use a JSON path expression to query an element in a JSON object. JSON path expressions are of the STRING data type. In most cases, they are used with various JSON functions, such as JSON_QUERY. In the database, JSON path expressions do not completely comply with the SQL/JSON path specifications. For information about the JSON path syntax that is supported in the database, see the following table, in which the following JSON object is used as an example.