Skip to content
New issue

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

JsonFormat.printer() does not print fields set to their defaults #8

Open
yuhan-token opened this issue Mar 21, 2018 · 0 comments
Open

Comments

@yuhan-token
Copy link
Contributor

JsonFormat.printer() does not print fields set to their defaults, e.g. integers that are 0, booleans that are false, strings that are empty. This is causing confusion in some of our API responses(when users can see the json response from a browser).

We might want to consider using the Printer.includingDefaultValueFields() option, but I suppose we had a reason not to use it in the first place?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant