1ed2249f74
A modifier is a path component that performs custom processing on the json. Multiple paths can be "chained" together using the pipe character. This is useful for getting results from a modified query. See the README file for more information.
19 lines
324 B
Go
19 lines
324 B
Go
//+build appengine js
|
|
|
|
package gjson
|
|
|
|
func getBytes(json []byte, path string) Result {
|
|
return Get(string(json), path)
|
|
}
|
|
func fillIndex(json string, c *parseContext) {
|
|
// noop. Use zero for the Index value.
|
|
}
|
|
|
|
func stringBytes(s string) []byte {
|
|
return []byte(s)
|
|
}
|
|
|
|
func bytesString(b []byte) string {
|
|
return string(b)
|
|
}
|