diff --git a/encoding/json/json.go b/encoding/json/json.go index 826b688e6..a156fb5a0 100644 --- a/encoding/json/json.go +++ b/encoding/json/json.go @@ -16,6 +16,7 @@ var ( // MarshalOptions is a configurable JSON format marshaler. MarshalOptions = protojson.MarshalOptions{ EmitUnpopulated: true, + UseProtoNames: true, } // UnmarshalOptions is a configurable JSON format parser. UnmarshalOptions = protojson.UnmarshalOptions{