We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example by :
var v interface{} json_str := "{\"i\":2596996162,\"e\":\"\",\"o\":\"\",\"s\":0,\"r\":{\"uuid\":693443841357266944}}" json.Unmarshal([]byte(json_str),&v) fmt.Print(v) //Output: //map[i:2.596996162e+09 e: o: s:0 r:map[uuid:6.93443841357267e+17]]
the uuid element in the json_str is uint64,but after json.Unmarshal,is float64
i want keep uint64 after json.Unmarshal of uuid
The text was updated successfully, but these errors were encountered:
Use json's UseNumber. https://golang.org/pkg/encoding/json/#Decoder.UseNumber
Sorry, something went wrong.
No branches or pull requests
example by :
the uuid element in the json_str is uint64,but after json.Unmarshal,is float64
i want keep uint64 after json.Unmarshal of uuid
The text was updated successfully, but these errors were encountered: