How to serialize JSON to binary Protocol Buffers (Protobuf) serialization on command line? Assuming the JSON follows Protobuf 3 JSON Mapping)
Question How to encode protocol buffer string to binary using protoc has an answer for serializing to Protobuf binary from Protobuf Text Format Language with protoc --decode
but if I have understood right, protoc
doesn't support JSON. With that, converting from JSON to Protobuf Text Format should answer the need.