func GetMany(json string, path ...string) []Result {
res := make([]Result, len(path))
for i, path := range path {
res[i] = Get(json, path)
}
return res
}
GetMany function just for loop calls Get function. It seems to parse the json string for very loop, and it is not efficient because of the first loop has got the information about the json string. Maybe I misunderstand something? Thanks again.
Thanks for your fast JSON parser.
GetMany function just for loop calls Get function. It seems to parse the json string for very loop, and it is not efficient because of the first loop has got the information about the json string. Maybe I misunderstand something? Thanks again.