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
Version: v1.1.7 Here is the code
import ( "bytes" json2 "encoding/json" "testing" ) var json = jsoniter.ConfigCompatibleWithStandardLibrary type Test struct { Message json2.RawMessage } func TestJson(t *testing.T) { test := &Test{} test.Message = []byte("123") data, _ := json.Marshal(test) data2, _ := json2.Marshal(test) if bytes.Compare(data, data2) != 0 { t.Errorf("data: %s != data2 %s", data, data2) } }
output:
=== RUN TestJson --- FAIL: TestJson (0.00s) handler_test.go:19: data: {"Message":null} != data2 {"Message":123} FAIL
The text was updated successfully, but these errors were encountered:
I think this is a dupe of #389
Sorry, something went wrong.
Merge pull request #432 from AllenX2018/fix-raw-message-integer-issue
7acbb40
fix issue #389 #411
fix issue json-iterator#389 json-iterator#411
574b45d
Merge pull request json-iterator#432 from AllenX2018/fix-raw-message-…
7d4dbe7
…integer-issue fix issue json-iterator#389 json-iterator#411
No branches or pull requests
Version: v1.1.7
Here is the code
output:
The text was updated successfully, but these errors were encountered: