MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / jsonPath

Function jsonPath

mcp/tool_example_test.go:265–270  ·  view source on GitHub ↗
(s any, path ...string)

Source from the content-addressed store, hash-verified

263}
264
265func jsonPath(s any, path ...string) any {
266 if len(path) == 0 {
267 return s
268 }
269 return jsonPath(s.(map[string]any)[path[0]], path[1:]...)
270}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…