MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / MarshalJSON

Method MarshalJSON

options/options.go:360–362  ·  view source on GitHub ↗

MarshalJSON returns Options as a JSON byte slice.

()

Source from the content-addressed store, hash-verified

358
359// MarshalJSON returns Options as a JSON byte slice.
360func (o *Options) MarshalJSON() ([]byte, error) {
361 return json.Marshal(o.NestedMap())
362}
363
364// LogValue returns Options as [slog.Value]
365func (o *Options) LogValue() slog.Value {

Callers

nothing calls this directly

Calls 1

NestedMapMethod · 0.95

Tested by

no test coverage detected