MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / MarshalJSON

Method MarshalJSON

pkg/util/uuid/uuid_wrapper.go:83–85  ·  view source on GitHub ↗

MarshalJSON returns the JSON encoding of u.

()

Source from the content-addressed store, hash-verified

81
82// MarshalJSON returns the JSON encoding of u.
83func (u UUID) MarshalJSON() ([]byte, error) {
84 return json.Marshal(u.String())
85}
86
87// UnmarshalJSON unmarshals the JSON encoded data into u.
88func (u *UUID) UnmarshalJSON(data []byte) error {

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected