Skip to content

Null field from json deserialization fix #37

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

Merged
merged 1 commit into from
Feb 28, 2017
Merged

Conversation

volkov
Copy link
Contributor

@volkov volkov commented Sep 25, 2016

At this moment deserialization from json differs in case when filed is omitted or equals to null.

{} deserializes to empty object when {"field":null} is deserialized to object with empty object for "field"

After this fix both json are deserialized to empty object

@scr
Copy link
Collaborator

scr commented Feb 23, 2017

👍

@scr
Copy link
Collaborator

scr commented Feb 23, 2017

Can you please add a note in https://github.com/bivas/protobuf-java-format/blob/master/RELEASE-NOTES.md - this is still manually generated - This would be a fix added in 1.5.

@scr scr merged commit afb6662 into bivas:master Feb 28, 2017
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

Successfully merging this pull request may close these issues.

2 participants