jsonProtection
Description
Can be used in
spring:beans, api, bean, if, interceptor, internalProxy, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy, transport and wsStompReassembler
Attributes
Name | Required | Default | Description | Example |
---|---|---|---|---|
maxArraySize | false | 1000 |
Maximum size of JSON objects. For example,
has a maximum object size of 2. (In this example, both objects effectively have a size of 2.) |
|
maxDepth | false | 50 |
Maximum depth of nested JSON structures. For example,
has a depth of 3. |
|
maxKeyLength | false | 256 |
Maximum key length. For example,
has a maximum key length of 4. (In this example, all 4 strings used as keys effectively have length 4.) The maximum key length also affects strings ("abcd", "ijkl", "qrst" and "uvwx" in the example). The strings can be also limited by the separate property maxStringLength. The stricter limit applies. |
|
maxObjectSize | false | 1000 |
Maximum size of JSON objects. For example,
has a maximum object size of 2. (In this example, both objects effectively have a size of 2.) |
|
maxSize | false | 52428800 | Maximum total size of the JSON document in bytes. | |
maxStringLength | false | 262144 |
Maximum string length. For example,
has a maximum string length of 4. (In this example, all 6 strings effectively have length 4.) The maximum string length also affects keys ("abcd", "ijkl", "qrst" and "uvwx" in the example). The keys can be also limited by the separate property maxKeyLength. The stricter limit applies. |
|
maxTokens | false | 10000 |
Maximum number of tokens a JSON document may consist of. For example,
counts as 3. |