Skip to content

json.parse fails on negative integers #319

@RisingSunStudios

Description

@RisingSunStudios

Hi,

Found a bug in the lexer where it will throw a SyntaxErrorException with the message 'unexpected token: "-"' when the data contains a negative number.

json.parse("{ \"foo\": -1 }}")

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