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