@hyperjump/browser
    Preparing search index...

    Variable fromJsonConst

    fromJson: <
        A extends object = { type: "json" },
        R extends JsonNode<A> | undefined = JsonNode<A>,
    >(
        json: string,
        location?: string,
        reviver?: Reviver<A, R>,
    ) => R

    Parse a JSON string into a JSON AST. Includes a reviver option similar to JSON.parse.

    Type declaration

      • <
            A extends object = { type: "json" },
            R extends JsonNode<A> | undefined = JsonNode<A>,
        >(
            json: string,
            location?: string,
            reviver?: Reviver<A, R>,
        ): R
      • Type Parameters

        • A extends object = { type: "json" }
        • R extends JsonNode<A> | undefined = JsonNode<A>

        Parameters

        • json: string
        • Optionallocation: string
        • Optionalreviver: Reviver<A, R>

        Returns R

    SynataxError