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
I would expect private fields to only be included if I have called extra.SupportPrivateFields()
type s struct { FieldName string privateField string } s1 := s{FieldName: "foo", privateField:"bar"} extra.SetNamingStrategy(extra.LowerCaseWithUnderscores) json1, _ := jsoniter.Marshal(s1) println(string(json1))
output: {"field_name":"foo","private_field":"bar"}
{"field_name":"foo","private_field":"bar"}
The text was updated successfully, but these errors were encountered:
Merge pull request #429 from AllenX2018/fix-typo
69f2a91
fix issue #326
fix issue json-iterator#326
8cfbddd
Merge pull request json-iterator#429 from AllenX2018/fix-typo
2b9d50a
No branches or pull requests
I would expect private fields to only be included if I have called extra.SupportPrivateFields()
output:
{"field_name":"foo","private_field":"bar"}
The text was updated successfully, but these errors were encountered: