Overview
json_document_max_depth specifies the maximum depth of nesting allowed in a JSON document.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Both the
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 100 |
| Value range | [100, 1024] |
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
JSON data structures with excessive nesting levels are not recommended. Firstly, deeply nested JSON data reduces readability and maintainability. Secondly, parsing and serializing such data typically consumes more time and computational resources, leading to suboptimal performance.
Configuration example
Set the maximum nesting level allowed in JSON documents to 100.
obclient> ALTER SYSTEM SET json_document_max_depth=100;