Skip to content

The float64 issue... again #144

Open
@treeder

Description

@treeder

floats are just outright rejected as of this commit: a94ed0a

Which makes it annoying for JSON users.

Two ideas to make this a bit smoother.

  1. Allow whole numbers to pass through, eg: if f == math.Trunc(f)
  2. Put more info into the error that rejects float64's, such as if you are parsing JSON, use decoder.UseNumber()

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