From 9cc0abf9e07393286de34c15ec0633e209f0ada8 Mon Sep 17 00:00:00 2001 From: Timo Vetter Date: Thu, 5 Oct 2023 12:54:07 +0200 Subject: [PATCH] v0.0.278 DYN-166 bugfix jsonfilter --- goextVersion.go | 4 ++-- gojson/encode.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/goextVersion.go b/goextVersion.go index 10bbe65..c95dce3 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.277" +const GoextVersion = "0.0.278" -const GoextVersionTimestamp = "2023-10-05T12:00:51+0200" +const GoextVersionTimestamp = "2023-10-05T12:54:07+0200" diff --git a/gojson/encode.go b/gojson/encode.go index 346cbc1..af7fab9 100644 --- a/gojson/encode.go +++ b/gojson/encode.go @@ -1326,7 +1326,7 @@ func typeFields(t reflect.Type) structFields { var jsonfilter []string jsonfilterTag := sf.Tag.Get("jsonfilter") - if isValidTag(jsonfilterTag) { + if jsonfilterTag != "" && jsonfilterTag != "-" { jsonfilter = strings.Split(jsonfilterTag, ",") }