Documentation
    Preparing search index...

    Interface UntrustedJsonLimits

    Size and nesting bounds for one untrusted document (§96).

    Both fields are optional; an omitted field takes its documented default, and Number.POSITIVE_INFINITY disables that check for a caller who has decided, in writing, that the input is trusted.

    interface UntrustedJsonLimits {
        maximumDepth?: number;
        maximumTextLength?: number;
    }
    Index
    maximumDepth?: number

    Maximum JSON nesting depth, counting the parsed value as level 1. Defaults to DEFAULT_MAXIMUM_DEPTH.

    maximumTextLength?: number

    Maximum document text length in UTF-16 code units. Defaults to DEFAULT_MAXIMUM_TEXT_LENGTH.