forked from mirror/gjson
Minor README clean-up
This commit is contained in:
parent
617caec145
commit
8eb5c54ee3
|
@ -136,8 +136,6 @@ result.Less(token Result, caseSensitive bool) bool
|
|||
|
||||
The `result.Value()` function returns an `interface{}` which requires type assertion and is one of the following Go types:
|
||||
|
||||
|
||||
|
||||
The `result.Array()` function returns back an array of values.
|
||||
If the result represents a non-existent value, then an empty array will be returned.
|
||||
If the result is not a JSON array, the return value will be an array containing one result.
|
||||
|
@ -169,7 +167,7 @@ Suppose you want all the last names from the following json:
|
|||
"lastName": "Harold",
|
||||
}
|
||||
]
|
||||
}`
|
||||
}
|
||||
```
|
||||
|
||||
You would use the path "programmers.#.lastName" like such:
|
||||
|
|
Loading…
Reference in New Issue