Inist-CNRS / node-jbj

Like XSL/XML but for JSON.
http://Inist-CNRS.github.io/jbj-playground/
13 stars 3 forks source link

Add remove action #2

Closed parmentf closed 9 years ago

parmentf commented 9 years ago

Sometimes, we get empty values in arrays (after a get or select on an array of paths):

["Animals", "Organisms", ""]

We may want to remove this empty value.

"remove": ""

could be useful.

Another use case would be when we want to remove the most occurent value (for example a value present in all documents, which is not discriminant).

"remove": "USA"

or

"remove": "Biology"