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

Function GetManyBytes

gjson.go:2465–2471  ·  view source on GitHub ↗

GetManyBytes searches json for the multiple paths. The return value is a Result array where the number of items will be equal to the number of input paths.

(json []byte, path ...string)

Source from the content-addressed store, hash-verified

2463// The return value is a Result array where the number of items
2464// will be equal to the number of input paths.
2465func GetManyBytes(json []byte, path ...string) []Result {
2466 res := make([]Result, len(path))
2467 for i, path := range path {
2468 res[i] = GetBytes(json, path)
2469 }
2470 return res
2471}
2472
2473func validpayload(data []byte, i int) (outi int, ok bool) {
2474 for ; i < len(data); i++ {

Callers 3

TestManyBasicFunction · 0.85
testManyAnyFunction · 0.85

Calls 1

GetBytesFunction · 0.85

Tested by 3

TestManyBasicFunction · 0.68
testManyAnyFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…