bivas / protobuf-java-format

Provide serialization and de-serialization of different formats based on Google’s protobuf Message. Enables overriding the default (byte array) output to text based formats such as XML, JSON and HTML.
BSD 3-Clause "New" or "Revised" License
153 stars 97 forks source link

Null field from json deserialization fix #37

Closed volkov closed 7 years ago

volkov commented 8 years ago

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 commented 7 years ago

👍

scr commented 7 years ago

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.