▲ | the__alchemist 5 days ago | ||||||||||||||||
Protobuf is fine if: A: You control both ends of the serialized line, or: B: The other end of the line expects protobufs. There are many [de]serialization scenarios where you are interfacing with a third party API. (HTTP/JSON web API, a given IC's comm protocol as defined in its datasheet etc) | |||||||||||||||||
▲ | dontlaugh 4 days ago | parent | next [-] | ||||||||||||||||
You can still use a protobuf schema to parse/generate JSON, in most cases. | |||||||||||||||||
▲ | dgan 4 days ago | parent | prev [-] | ||||||||||||||||
i think even if 3rd party API expects json, you could still map their models to proto ; i haven't encountered this case tho might still be challenging to convince proto to output what you want exactly | |||||||||||||||||
|