Skip to content

Commit 9d9972a

Browse files
committed
...
1 parent 901081b commit 9d9972a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,17 @@ Implemented limits are:
131131
* Maximum Property name length (2.16+): (see https://github.com/FasterXML/jackson-core/issues/1047)
132132
* Default: 50,000
133133

134+
### Re-configuring limits
135+
136+
You can change per-factory limits as follows:
137+
138+
```
139+
JsonFactory f = JsonFactory.builder()
140+
.streamReadConstraints(StreamReadConstraints.builder().maxNumberLength(250).build())
141+
.streamWriteConstraints(StreamWriteConstraints.builder().maxNestingDepth(2000).build())
142+
.build();
143+
```
144+
134145
-----
135146

136147
## Compatibility

0 commit comments

Comments
 (0)