From e87edff6fec9b484eda440d3d7d56eeabae24c1e Mon Sep 17 00:00:00 2001 From: Daniel Oluojomu Date: Thu, 26 Oct 2023 17:49:06 +0100 Subject: [PATCH] fix: fix MarshalJSON (#1820) --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 5c85f7422c..8f89b6cd24 100644 --- a/config/config.go +++ b/config/config.go @@ -301,9 +301,9 @@ func (ft *FlagLevel) UnmarshalJSON(v []byte) error { func (ft FlagLevel) MarshalJSON() ([]byte, error) { switch ft { case ExperimentalFlagLevel: - return []byte(Experimental), nil + return []byte(fmt.Sprintf(`"%s"`, []byte(Experimental))), nil default: - return []byte(""), nil + return []byte(fmt.Sprintf(`"%s"`, []byte(Experimental))), nil } }