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

Method MarshalJSON

pkg/set/intset.go:92–94  ·  view source on GitHub ↗

MarshalJSON - converts to JSON data.

()

Source from the content-addressed store, hash-verified

90
91// MarshalJSON - converts to JSON data.
92func (set IntSet) MarshalJSON() ([]byte, error) {
93 return json.Marshal(set.ToSlice())
94}
95
96// UnmarshalJSON - parses JSON data and creates new set with it.
97func (set *IntSet) UnmarshalJSON(data []byte) error {

Callers 2

TestIntSetMarshalJSONFunction · 0.45
TestStringSetMarshalJSONFunction · 0.45

Calls 2

ToSliceMethod · 0.95
MarshalMethod · 0.65

Tested by 2

TestIntSetMarshalJSONFunction · 0.36
TestStringSetMarshalJSONFunction · 0.36