minor edits

This commit is contained in:
Josh Baker 2018-02-09 19:51:56 -07:00 committed by GitHub
parent 749b396bb9
commit 4b8623b9d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ friends.#[first%"D*"].last >> "Murphy"
## JSON Lines ## JSON Lines
There's support for [JSON Lines](http://jsonlines.org/) using the `..` prefix. There's support for [JSON Lines](http://jsonlines.org/) using the `..` prefix.
Which when specified treats the multilined document as an array. Which when used treats the multilined document as an array.
For example: For example:
@ -118,7 +118,7 @@ For example:
..#[name="May"].age >> 57 ..#[name="May"].age >> 57
``` ```
The `ForEachLines` function will iterate through lines. The `ForEachLines` function will iterate through JSON lines.
```go ```go
gjson.ForEachLine(json, func(line gjson.Result) bool{ gjson.ForEachLine(json, func(line gjson.Result) bool{