JSON printing / parsing of `optional` fields
Now that scalar field presence is supported in proto3 (hooray! 🎉), it should be possible for JSON printing and parsing to take advantage of it:
- Parsing: When a field defined as
optionalis provided in JSON input (even if its value is the default), parsing into a proto message should result in the field being set. - Printing: When a field defined as
optionalis set in a proto message (even if its value is the default), it should be included in the JSON output when printing.
It may make sense to guard this new functionality behind a parameter like always_include_optionals_when_set in JsonParseOptions and JsonPrintOptions.
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.
This issue is labeled inactive because the last activity was over 90 days ago.
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it.
This issue was closed and archived because there has been no new activity in the 14 days since the inactive label was added.