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.Raw, value.Str = tostr(json[i:])
default:
return Result{}
value.Clear()
return
}
break
}
if value.Exists() {
value.Index = i
}
return value
}
// ParseBytes parses the json and returns a result.