go-jsonpb

Friday, September 25, 2020

A small protoc compiler plugin that adds custom json.Marshaler implementations to your protobuf message types to use jsonpb.Marshaler under the hood.

The primary motivation for doing this is to have enums marshaled to their string values, rather than integers, which is the behavior of the standard encoding/json marshaler.