We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 228ac2d commit 2af8064Copy full SHA for 2af8064
bson/objectid/objectid.go
@@ -78,7 +78,7 @@ func FromHex(s string) (ObjectID, error) {
78
}
79
80
// MarshalJSON returns the ObjectID as a string
81
-func (id *ObjectID) MarshalJSON() ([]byte, error) {
+func (id ObjectID) MarshalJSON() ([]byte, error) {
82
return json.Marshal(id.Hex())
83
84
0 commit comments