mirror of https://github.com/tidwall/gjson.git
added go tag to codeblock
This commit is contained in:
parent
360ac81635
commit
e42a0961e6
|
@ -147,7 +147,7 @@ for _,name := range result.Multi {
|
||||||
|
|
||||||
Sometimes you may want to see if the value actually existed in the json document.
|
Sometimes you may want to see if the value actually existed in the json document.
|
||||||
|
|
||||||
```
|
```go
|
||||||
value := gjson.Get(json, "name.last")
|
value := gjson.Get(json, "name.last")
|
||||||
if !value.Exists() {
|
if !value.Exists() {
|
||||||
println("no last name")
|
println("no last name")
|
||||||
|
|
Loading…
Reference in New Issue