Replies: 1 comment 4 replies
-
This is not a bug, lenses - by design - were not made for that purpose. It's more about filtering the data so e.g. given the following [
{
"cond1": "false",
"cond2": "true",
"foo": 123
},
{
"cond1": "true",
"cond2": "true",
"bar": 456
},
{
"cond1": "true",
"cond2": "false",
"yup": 789
}
] You can pick two elements that are holding some key/value pairs: jql '.|={"cond1":"false","yup":"789"}' test.json [
{
"cond1": "false",
"cond2": "true",
"foo": 123
},
{
"cond1": "true",
"cond2": "false",
"yup": 789
}
] Moving this to a discussion since changing this would break the actual grammar and the goal was to keep the tool as simple as possible. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would expect the following to output only the second element:
but it outputs
How do you do a conjunction on the lens conditions?
Beta Was this translation helpful? Give feedback.
All reactions