fixed exists check
This commit is contained in:
parent
725f3caa55
commit
a93ef25a70
2
gjson.go
2
gjson.go
|
@ -57,7 +57,7 @@ func (t Result) String() string {
|
||||||
// println("value exists")
|
// println("value exists")
|
||||||
// }
|
// }
|
||||||
func (t Result) Exists() bool {
|
func (t Result) Exists() bool {
|
||||||
return t.Type != Null && len(t.Raw) != 0
|
return t.Type != Null || len(t.Raw) != 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// Value returns one of these types:
|
// Value returns one of these types:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user