Skip to content

Commit

Permalink
Merge pull request #157 from snprajwal/use-proto-names
Browse files Browse the repository at this point in the history
fix(crit): use proto names in JSON
  • Loading branch information
rst0git committed Dec 21, 2023
2 parents ae14a82 + 586239f commit d163ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crit/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (c *CriuEntry) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprint(`{"count":"`, c.Extra, `"}`)), nil
}

data, err := protojson.Marshal(c.Message)
data, err := protojson.MarshalOptions{UseProtoNames: true}.Marshal(c.Message)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit d163ebf

Please sign in to comment.