protobuf2json-c icon indicating copy to clipboard operation
protobuf2json-c copied to clipboard

NULL repeated fields should be converted to an empty list

Open mbennett2212 opened this issue 6 years ago • 1 comments

According to the 'JSON Mapping' section in the proto3 Language guide found here:

https://developers.google.com/protocol-buffers/docs/proto3#json

It is mentioned that NULL repeated fields should be converted to an empty list.

Currently protobuf2json-c does not convert a NULL repeated field to JSON (it simply ignores it). This patch updates the library to ensure that NULL repeated fields are converted to empty JSON lists.

mbennett2212 avatar Oct 13 '19 20:10 mbennett2212

Travis CI is failing due to libjansson missing on the build server (unrelated to this PR).

mbennett2212 avatar Oct 13 '19 21:10 mbennett2212