Closed Kish29 closed 2 years ago
This is a question for the Go standard library, the json
package in go-jose
is merely a copy of encoding/json
from Go with updated semantics to make it more suitable for JOSE objects. It's not meant for use outside of this library.
when I use UnmarshalIntOrFloat to decode float number especially when the fractional part ends with '. 0', here is the test:
and output is:
So I hope that it could offer an option to decide whether keep these special float number still be float type like float_zero,float_a,float_c, thanks! :)