shenek / streamson

Memory efficient handling of large JSON data.
MIT License
4 stars 0 forks source link

Partial reversed simple matcher #105

Closed shenek closed 4 years ago

shenek commented 4 years ago

Normal Simple matcher matches the only from start e.g.

{"users"}[]{"name"}

will match paths like this

{"users"}[0]{"name"}
{"users"}[1]{"name"}
...

Reversed partial matcher would match like this

[]{"name"}
{"users"}[0]{"name"}
{"users"}[1]{"name"}
...
{"groups"}[0]{"name"}
shenek commented 4 years ago

Probably it might be more beneficial to extend simple matcher with * a.k.a. wildcard match.

And perhaps ? would be also useful.