thedevsaddam / gojsonq

A simple Go package for querying over JSON, YAML, XML, and CSV data.
https://github.com/thedevsaddam/gojsonq/wiki
MIT License
2.19k stars 140 forks source link

Multiple field validation #97

Closed serjikisa closed 1 year ago

serjikisa commented 1 year ago

https://go.dev/play/p/aJ6xhpWoUS6

While validating multiple fields from same json, after each find must do another gojsonq.New().FromString(str) unless only the first one will work and the rest will fail, also tried Copy. The link is self explanatory.

Thanks

serjikisa commented 1 year ago

Found another issue similar, should use Reset() before each Find