MCPcopy
hub / github.com/tidwall/gjson / GetBytes

Function GetBytes

gjson.go:2243–2245  ·  view source on GitHub ↗

GetBytes searches json for the specified path. If working with bytes, this method preferred over Get(string(data), path)

(json []byte, path string)

Source from the content-addressed store, hash-verified

2241// GetBytes searches json for the specified path.
2242// If working with bytes, this method preferred over Get(string(data), path)
2243func GetBytes(json []byte, path string) Result {
2244 return getBytes(json, path)
2245}
2246
2247// runeit returns the rune from the the \uXXXX
2248func runeit(json string) rune {

Callers 5

TestRandomDataFunction · 0.85
TestByteSafetyFunction · 0.85
getFunction · 0.85
testManyAnyFunction · 0.85
GetManyBytesFunction · 0.85

Calls 1

getBytesFunction · 0.85

Tested by 4

TestRandomDataFunction · 0.68
TestByteSafetyFunction · 0.68
getFunction · 0.68
testManyAnyFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…