@get-milano/core 2.2.0
    Preparing search index...

    Class MilanoJsonError

    JSON parsing, written by hand because JSON.parse cannot express the contract: it collapses 5.0 into 5, destroying the int/double distinction the type system depends on (a JSON number with a fractional part never satisfies an int declaration, and str(5.0) is "5.0" while str(5) is "5").

    A number written without a fractional part or exponent becomes int when it fits the 64-bit range, and double otherwise; anything written with a fractional part or an exponent is always double.

    Hierarchy

    • Error
      • MilanoJsonError
    Index
    message: string
    name: string
    position: number
    stack?: string