MCPcopy
hub / github.com/grafana/tempo / MarshalJSON

Method MarshalJSON

tempodb/backend/uuid.go:61–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61func (u UUID) MarshalJSON() ([]byte, error) {
62 return json.Marshal(((google_uuid.UUID)(u)).String())
63}
64
65func (u *UUID) UnmarshalJSON(data []byte) error {
66 var s string

Callers 1

Test_roundTripFunction · 0.95

Calls 2

MarshalMethod · 0.65
StringMethod · 0.45

Tested by 1

Test_roundTripFunction · 0.76