Path returns a new Value object for child object(s) matching given JSONPath expression. JSONPath is a simple XPath-like query language. See http://goessner.net/articles/JsonPath/. We currently use https://github.com/yalp/jsonpath, which implements only a subset of JSONPath, yet useful for simple q
(path string)
| 166 | // user.String().IsEqual("john") |
| 167 | // } |
| 168 | func (v *Value) Path(path string) *Value { |
| 169 | opChain := v.chain.enter("Path(%q)", path) |
| 170 | defer opChain.leave() |
| 171 | |
| 172 | return jsonPath(opChain, v.value, path) |
| 173 | } |
| 174 | |
| 175 | // Schema succeeds if value matches given JSON Schema. |
| 176 | // |