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
sjson.Set(b.content, path, []uint8{1, 2, 3, 4}) value type "[]uint8" will change to "string"
The text was updated successfully, but these errors were encountered:
Go treats []byte and []uint8 as the same thing, and sjson treats []byte as a string.
[]byte
[]uint8
string
https://github.com/tidwall/sjson/blob/master/sjson.go#L674-L676
There's no way, that I know of, to make a distinction between []byte and []uint8.
Sorry, something went wrong.
No branches or pull requests
sjson.Set(b.content, path, []uint8{1, 2, 3, 4})
value type "[]uint8" will change to "string"
The text was updated successfully, but these errors were encountered: