diff --git a/configui.go b/configui.go index c41ce1a..e0cd085 100644 --- a/configui.go +++ b/configui.go @@ -58,7 +58,7 @@ type ConfigUI struct { Files []*File `json:"files"` fileIndex map[string]int Actions []Action `json:"actions"` - Integrations []*Integration `json:"integrations"` + Integrations []*Integration `json:"integrations,omitempty"` ResultBellow bool `json:"result_bellow"` HideConfig bool `json:"hide_config"` diff --git a/file.go b/file.go index b6e2b75..38616c2 100644 --- a/file.go +++ b/file.go @@ -21,7 +21,7 @@ type File struct { Order int `json:"order"` // used for parsing post data - Data string `json:"data"` + Data string `json:"data,omitempty"` lock sync.RWMutex `json:"-"` owner *ConfigUI `json:"-"`