mirror of https://github.com/tidwall/gjson.git
Fix typo for querying arrays
Left side of the operator is omitted, not right.
This commit is contained in:
parent
c2bc5a409a
commit
9f5371b652
|
@ -117,7 +117,7 @@ friends.#(first%"D*").last "Murphy"
|
||||||
friends.#(first!%"D*").last "Craig"
|
friends.#(first!%"D*").last "Craig"
|
||||||
```
|
```
|
||||||
|
|
||||||
To query for a non-object value in an array, you can forgo the string to the right of the operator.
|
To query for a non-object value in an array, you can forgo the string to the left of the operator.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
children.#(!%"*a*") "Alex"
|
children.#(!%"*a*") "Alex"
|
||||||
|
|
Loading…
Reference in New Issue