Skip to content

NET-1650 Improve LexicalAnalyzer number parsing #8344

Closed
@mary-georgiou-sonarsource

Description

Currently, the LexicalAnalyzer class is parsing JSON integral numbers as double.
Considering that numbers in JSON can be an infinite series of digits (see specification) we should refactor the ReadNumberValue method to use long and BigInteger for integral, and double for decimals.
See draft of refactoring here.

This change should be thoroughly tested.

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