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 tried to serialize
class A { public int number {get; set;} = 0; }
when number is 0, there is nothing serialized. I was expecting something like
number
number: 0
The text was updated successfully, but these errors were encountered:
Default values are not emitted unless you call .EmitDefaults() on the SerializerBuilder.
Sorry, something went wrong.
Closing because this is a duplicate of #251
I have opened issue #427 that is related to your question. Feel free to join the discussion and provide any feedback that might be relevant.
No branches or pull requests
I tried to serialize
when
number
is 0, there is nothing serialized. I was expecting something likeThe text was updated successfully, but these errors were encountered: