News for hackers. Stuff that matters.
Re:Protobuf-py: Protobuf for Python, without compromises by sudorandom on Sunday July 12, 2026 @10:29AM (#48881473)
The buf CLI can do this.

Here's how it looks to convert from encoded protobuf to json (protojson).

  buf convert schema.proto \
    --type YourMessageName \
    --from payload.binpb \
    --to output.json
And just invert the arguments to convert back.

  buf convert schema.proto \
    --type YourMessageName \
    --from data.json \
    --to encoded.binpb

There are no comments on this comment yet.