Note
- For V4.3.x, this parameter is available starting with V4.3.4.
- For V4.2.1, this parameter is available starting with V4.2.1 BP7. For other V4.2.x versions, this parameter is available starting with V4.2.5.
Description
json_document_max_depth specifies the maximum allowed nesting level of a JSON document.
Privilege requirements
Query the parameter
You can use the
SHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter in thesystenant and all user tenants.Modify the parameter
You can modify this parameter in the
systenant and user tenants.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 100 |
| Value range | [100, 1024] |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
We recommend that you avoid using a JSON data structure with a nesting level that is too deep. First, a deeply nested JSON document is difficult to read and maintain. Second, parsing and serializing deeply nested JSON data usually consumes more time and computing resources, which reduces performance efficiency.
Examples
Set the maximum allowed nesting level of a JSON document to 100.
obclient> ALTER SYSTEM SET json_document_max_depth=100;
