exprotobuf icon indicating copy to clipboard operation
exprotobuf copied to clipboard

Representation of oneof with tuples

Open pallix opened this issue 7 years ago • 0 comments

The current representation of oneof field use tuples. This is problematic when using the Poison library to serialize a Protobuf structure to JSON: tuples cannot be converted to JSON (only arrays, maps etc.).

Would it make sense and would it be possible to use an array (possibly optionally if it breaks code) to represent oneof fields? This would allow a great interoperability between exprotobuf and JSON.

pallix avatar Feb 01 '18 10:02 pallix