Documentation
    Preparing search index...

    Interface IFailure<T>

    Failed parsing result with partial data and errors.

    Indicates the JSON had syntax errors that could not be fully recovered. The data contains whatever could be parsed, and errors describes what went wrong.

    interface IFailure<T = unknown> {
        data: DeepPartial<T> | undefined;
        errors: IJsonParseResult.IError[];
        input: string;
        success: false;
    }

    Type Parameters

    • T = unknown

      The expected type (data may be partial)

    Index

    Properties

    data: DeepPartial<T> | undefined

    Partially parsed data.

    Contains whatever could be recovered from the malformed JSON. May be incomplete or have missing properties.

    Array of parsing errors encountered.

    Each error describes a specific issue found during parsing, with location and suggested fix.

    input: string

    The original input string that was parsed.

    Preserved for debugging or error correction purposes.

    success: false

    Success discriminator.

    Always false for failed parsing.