Fix issue around return values

This commit is contained in:
Robert Weber 2024-11-15 09:33:33 -07:00
parent e470b70571
commit 1144874cda
1 changed files with 2 additions and 2 deletions

View File

@ -527,14 +527,14 @@ func (value *Result) Parse(json string) {
value.Type = String value.Type = String
value.Raw, value.Str = tostr(json[i:]) value.Raw, value.Str = tostr(json[i:])
default: default:
return Result{} value.Clear()
return
} }
break break
} }
if value.Exists() { if value.Exists() {
value.Index = i value.Index = i
} }
return value
} }
// ParseBytes parses the json and returns a result. // ParseBytes parses the json and returns a result.