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