Skip to content

Commit

Permalink
Addressed review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Prithvipal Singh committed Feb 22, 2020
1 parent 0439aef commit 1879ad9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion SYNTAX.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,15 @@ c?ildren.0 "Sara"
Special purpose characters, such as `.`, `*`, and `?` can be escaped with `\`.

```go
fav\\.movie "Deer Hunter"
fav\.movie "Deer Hunter"
```

You'll also need to make sure that the `\` character is correctly escaped when hardcoding a path in source code.

```go
res := gjson.Get(json, "fav\\.movie") // must escape the slash
res := gjson.Get(json, `fav\.movie`) // no need to escape the slash

```

### Arrays
Expand Down

0 comments on commit 1879ad9

Please sign in to comment.