Nice!

The buf cli provides a conversion tool as well:
https://buf.build/docs/reference/cli/buf/convert


On Sun, Apr 21, 2024 at 3:08 PM Henry Q <hqin2...@gmail.com> wrote:

> 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
> <https://github.com/hq6/ProtobufJson> 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/protobuf/CAO8bsPA9k7Sm3hytee5yy-OeRQ3AGHtwHGYm%2B9%3Dwn3QXkMX5Kg%40mail.gmail.com
> <https://groups.google.com/d/msgid/protobuf/CAO8bsPA9k7Sm3hytee5yy-OeRQ3AGHtwHGYm%2B9%3Dwn3QXkMX5Kg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/CAD7-yftaHwxfy%3D6GJQ43B68hk2SjYmvMOn8vspF9Mm6wSzHwHw%40mail.gmail.com.

Reply via email to