Open
Description
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.
- Allow whole numbers to pass through, eg:
if f == math.Trunc(f)
- Put more info into the error that rejects float64's, such as
if you are parsing JSON, use decoder.UseNumber()
Metadata
Metadata
Assignees
Labels
No labels