lloyd / JSONSelect

CSS-like selectors for JSON
http://jsonselect.org
ISC License
1.59k stars 116 forks source link

Not like operator #52

Open brainsiq opened 10 years ago

brainsiq commented 10 years ago

Is there already a way of doing a not like expression?

I can see it's really easy to add another binary operator for it, but it doesn't seem correct as if this was done in CSS it would use :not()

dead1 commented 10 years ago

I wish to implement nodejs application input validation through some JSON selector language and in case of JSONSelect I need something like ".languagesSpoken :not(.lang)" to select properties which not match my pattern and throw an "invalid properties" exception.