DCS World Typescript
    Preparing search index...

    Interface EncodeOptions

    Options for encode.

    interface EncodeOptions {
        emptyTable?: "object" | "array";
        indent?: string | number;
        maxDepth?: number;
        sortKeys?: boolean;
    }
    Index
    emptyTable?: "object" | "array"

    How to encode an empty table that is not marked with asArray/asObject. Defaults to "array".

    indent?: string | number

    Pretty-print with this indent: a number of spaces (clamped to 10) or a string (truncated to 10 characters), exactly like JSON.stringify's space argument. Omitted, 0 or "" produces compact output.

    maxDepth?: number

    Maximum nesting depth before encoding fails. Defaults to 512.

    sortKeys?: boolean

    Emit object keys in sorted (byte) order for deterministic output. Defaults to false (pairs order).