Hi folks,
As far as I'm aware, there is still no official CLI tool for protobuf-json conversion.
Since I recently polished my command line
ProtobufJson converter to improve useability, I'd like to share it with this list in case it's useful for others.
Here are example invocations to convert in opposite directions:
./JsonToProto -I exampleProtoSearchPath Example '{"x": 5, "text": "Hello World"}' > Output.bin
./ProtoToJson -I exampleProtoSearchPath Example < Output.bin
At my employer, we use this tool to manually make requests to proto-over-http endpoints, as well as decode gRPC requests captured by Envoy TAP.
Regards,
Henry Qin