Skip to content

JsonReader API call to determine whether Number was specified as whole number (no period) or floating-point (period) #2217

@jernst

Description

@jernst

I'd like to be able to tell the difference between
{ "x" : 17 }
and
{ "x" : 17.0 }
You internally distinguish between those two, but there is no API that exposes this. It might be as simple as adding a call:
boolean peekIsWholeNumber()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions