DEFAULT_MAX_JSON_DEPTH

const val DEFAULT_MAX_JSON_DEPTH: Int = 1000

Nesting depth a document may reach before the parser gives up.

The parser is recursive descent, so depth is bounded by the JVM stack; [[[[… a million deep is a two-megabyte file that would otherwise take the process down with a StackOverflowError. A thousand is far past anything a real document reaches and far short of anything that hurts.