You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to covert my json encoded data to msgp data, Then I have to Unmarshal the bytes to a map[string]interface{}, and marshal it to msgp.
but the data from json Unmarshal do not support json.Number type when I marshal it.
I have to use json.Number because there are some big int64 numbers in the original bytes.
The text was updated successfully, but these errors were encountered:
Allow encoding and decoding of `json.Number` values, either as struct members or as interface members.
Numbers will be encoded as integer, if possible, otherwise float64 is used. To cover the zero values, write an empty string, but invalid values will return errors when encoded
It is possible to encode as string with `//msgp:replace json.Number with:string`.
Fixestinylib#292
I want to covert my json encoded data to msgp data, Then I have to Unmarshal the bytes to a map[string]interface{}, and marshal it to msgp.
but the data from json Unmarshal do not support json.Number type when I marshal it.
I have to use json.Number because there are some big int64 numbers in the original bytes.
The text was updated successfully, but these errors were encountered: