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
What version of protobuf and what language are you using? Version: google-protobuf (3.9.2) Language: Ruby
What operating system (Linux, Windows, ...) and version? Ubuntu 18.04.2 LTS inside of WSL 2 (Windows Built 19018)
What runtime / compiler are you using (e.g., python version or gcc version) ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
What did you do? Steps to reproduce the behavior:
StringValue
wrappers.proto
Example message type:
import "google/protobuf/wrappers.proto"; message User { google.protobuf.StringValue email = 1; }
Example serialization:
user = User.new(email: Google::Protobuf::StringValue.new(value: '')) User.encode_json(user)
What did you expect to see Valid JSON string with empty key omitted:
{}
Or key containing empty wrapper object:
{"email": {}}
What did you see instead? Invalid JSON string containing key with no value:
{"email":}
The text was updated successfully, but these errors were encountered:
Also have this issue. Could you add a ruby tag to this issue?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What version of protobuf and what language are you using?
Version: google-protobuf (3.9.2)
Language: Ruby
What operating system (Linux, Windows, ...) and version?
Ubuntu 18.04.2 LTS inside of WSL 2 (Windows Built 19018)
What runtime / compiler are you using (e.g., python version or gcc version)
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
What did you do?
Steps to reproduce the behavior:
StringValue
field (defined bywrappers.proto
).StringValue
wrapper containing empty String.Example message type:
Example serialization:
What did you expect to see
Valid JSON string with empty key omitted:
Or key containing empty wrapper object:
{"email": {}}
What did you see instead?
Invalid JSON string containing key with no value:
{"email":}
The text was updated successfully, but these errors were encountered: