MCPcopy Create free account
hub / github.com/PaesslerAG/jsonpath / parse

Method parse

parse.go:32–39  ·  view source on GitHub ↗
(c context.Context)

Source from the content-addressed store, hash-verified

30}
31
32func (p *parser) parse(c context.Context) (r gval.Evaluable, err error) {
33 err = p.parsePath(c)
34
35 if err != nil {
36 return nil, err
37 }
38 return p.path.evaluate, nil
39}
40
41func (p *parser) parsePath(c context.Context) error {
42 switch p.Scan() {

Callers 2

parseRootPathFunction · 0.80
parseCurrentPathFunction · 0.80

Calls 1

parsePathMethod · 0.95

Tested by

no test coverage detected