From 42e34f41cf368818725e7ee210c044f3c84adb5f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 30 Oct 2024 11:01:42 -0500 Subject: [PATCH] add droplet.MarshalJSON() Signed-off-by: Jeff Carr --- config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.go b/config.go index cd33a83..b95ee16 100644 --- a/config.go +++ b/config.go @@ -382,6 +382,10 @@ func (d *Droplets) MarshalJSON() ([]byte, error) { return protojson.Marshal(d) } +func (d *Droplet) MarshalJSON() ([]byte, error) { + return protojson.Marshal(d) +} + func (e *Events) MarshalJSON() ([]byte, error) { return protojson.Marshal(e) }