Skip to content

Commit 054711a

Browse files
author
Rami.D
committed
Fix AND Update REDAME.md to include ObjectEach(..)
1 parent 71348c6 commit 054711a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jsonparser.ArrayEach(data, func(value []byte, dataType jsonparser.ValueType, off
6363
// You can use `ObjectEach` helper to iterate objects { "key1":object1, "key2":object2, .... "keyN":objectN }
6464
jsonparser.ObjectEach(data, func(key []byte, value []byte, dataType jsonparser.ValueType, offset int, err error) {
6565
fmt.Printf("Key: '%s'\n Value: '%s'\n Type: %s\n", string(key), string(value), dataType)
66-
}, "person", "avatars")
66+
}, "person", "name")
6767
```
6868

6969
## Need to speedup your app?

0 commit comments

Comments
 (0)