Skip to content

Can't parse into BigInt #424

@carpetdev

Description

@carpetdev

The following fails for me:

JSON.parse("1", BigInt)
# ERROR: ArgumentError: applyeach not applicable for `JSON.LazyValue{String}` with JSON type = `JSONTypes.NUMBER`

Note that it works in JSON3.jl:

typeof(JSON3.parse("1", BigInt))
# BigInt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions