Skip to content

replace jsonpb into protojson #16

@HurSungYun

Description

@HurSungYun

Replacing jsonpb into protojson is needed because jsonpb has been deprecated.

Additionally, protojson allows us to use marshalOptions to use snake_case keys for marshalling. Only camelCase is supported currently in grpc access logs and it seems it's not a good practice.

protojson.MarshalOptions{
    UseProtoNames:   true,
    EmitUnpopulated: true,
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions