fix parsing non-string slice values

- only string were parsed using wrapped json
 - now we also keep primitive types
This commit is contained in:
Adrien Marquès 2020-03-02 22:42:17 +01:00
parent 313b91bb7f
commit 4cb62ea122
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ func parseParameter(data interface{}) (interface{}, error) {
// ignore non-string // ignore non-string
if element.Kind() != reflect.String { if element.Kind() != reflect.String {
result[i] = nil result[i] = element.Interface()
continue continue
} }