Since the library uses interface{} types when deserializing messages, integers are all cast to float64. When printing out values in Go, if the value is large enough it prints into scientific notation then.
If there was an option to use UseNumber they would stay as json.Number types which could be parsed as needed downstream.
Since the library uses
interface{}
types when deserializing messages, integers are all cast tofloat64
. When printing out values in Go, if the value is large enough it prints into scientific notation then.If there was an option to use
UseNumber
they would stay asjson.Number
types which could be parsed as needed downstream.