tidwall / gjson

Get JSON values quickly - JSON parser for Go
MIT License
13.95k stars 841 forks source link

Update Exists method to check for array type #278

Closed SriHemnath closed 1 year ago

SriHemnath commented 2 years ago

Exists method of Result type returns true if it is of array type. Empty square brackets are considered as values and it returns true. A simple check is introduced to return false if result is of array type and is empty