Member Junction
    Preparing search index...

    Options controlling how CrushJSON compresses a payload.

    interface CrushOptions {
        ElideEmpty?: boolean;
        InternMinCount?: number;
        InternMinLength?: number;
        MaxChars?: number;
        MaxDepth?: number;
        TabularMinRows?: number;
    }
    Index

    Properties

    ElideEmpty?: boolean

    Drop null / undefined / '' fields, recording dropped field names in the legend. A table column empty across every row is dropped entirely. Default: true.

    InternMinCount?: number

    Minimum repeat count before a string is interned. Default: 3.

    InternMinLength?: number

    Minimum string length eligible for interning. Default: 16. Set 0 to disable.

    MaxChars?: number

    Hard ceiling on the crushed text length. When exceeded, trailing rows of the top-level table are dropped and recorded as legend.truncatedRows rather than silently lost. Omit for no limit.

    MaxDepth?: number

    Maximum structural depth to transform. Subtrees deeper than this are emitted verbatim (and noted in the legend) instead of recursing — this guards against stack overflow on deeply nested or accidentally cyclic-shaped data. Default: 64.

    TabularMinRows?: number

    Minimum element count before an array-of-objects is tabularized. Default: 2.