5d7556ad3d
Added ~20% performance boost be removing extra allocation when Valid() is called with a json string.
15 lines
267 B
Go
15 lines
267 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)
|
|
}
|