MCPcopy
hub / github.com/minio/minio-go / MarshalJSON

Method MarshalJSON

pkg/set/stringset.go:117–119  ·  view source on GitHub ↗

MarshalJSON - converts to JSON data.

()

Source from the content-addressed store, hash-verified

115
116// MarshalJSON - converts to JSON data.
117func (set StringSet) MarshalJSON() ([]byte, error) {
118 return json.Marshal(set.ToSlice())
119}
120
121// UnmarshalJSON - parses JSON data and creates new set with it.
122func (set *StringSet) UnmarshalJSON(data []byte) error {

Callers

nothing calls this directly

Calls 2

ToSliceMethod · 0.95
MarshalMethod · 0.65

Tested by

no test coverage detected