Skip to content

Implement encoding.TextUnmarshaler in Path #20

@rkosegi

Description

@rkosegi

Hi, it would have been nice to have UnmarshalText([]byte) error on Path.
That would allow for easy construction i.e from yaml document:

myQueries:
  - $.store.book[*].title
type myData struct {
  MyQueries []*jsonpath.Path  `yaml:"myQueries"`
}

Caller just needs to have YAML document un-marshaled.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions