kinetex - v1.0.0-rc.1
    Preparing search index...

    Interface SafeJSONParseOptions

    Options for safe JSON parsing.

    interface SafeJSONParseOptions {
        maxDepth?: number;
        maxStringLength?: number;
        maxArrayLength?: number;
        maxObjectKeys?: number;
        allowNonFinite?: boolean;
    }
    Index

    Properties

    maxDepth?: number

    Maximum allowed depth. Default: 32

    maxStringLength?: number

    Maximum allowed string length. Default: 10MB

    maxArrayLength?: number

    Maximum allowed array length. Default: 10000

    maxObjectKeys?: number

    Maximum allowed object key count. Default: 1000

    allowNonFinite?: boolean

    Whether to allow NaN/Infinity. Default: false