This commit is contained in:
Josh Baker 2016-10-28 10:56:10 -07:00 committed by GitHub
parent 95c6f92c50
commit bc89b871de
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ This will print:
Prichard
```
*There also the [GetBytes](#working-with-bytes) function when working with JSON byte slices.*
*There's also the [GetBytes](#working-with-bytes) function for working with JSON byte slices.*
## Path Syntax
@ -219,7 +219,7 @@ if !ok{
## Working with Bytes
If your JSON is contained a `[]byte` slice, there's the [GetBytes](https://godoc.org/github.com/tidwall/gjson#GetBytes) function. This is preferred over `Get(string(data), path)`.
If your JSON is contained in a `[]byte` slice, there's the [GetBytes](https://godoc.org/github.com/tidwall/gjson#GetBytes) function. This is preferred over `Get(string(data), path)`.
```go
var data []byte = ...