How to make json-edit match when property name is either X or Y? #4033
Answered
by
gorhill
Stevoisiak
asked this question in
Q&A
-
|
I want to make a filter with For example, I have two filter rules for Is it possible to combine them into a single rule? Something like: Example input JSON: Example output JSON: (This was originally asked on r/uBlockOrigin, but I was told to ask here instead) |
Beta Was this translation helpful? Give feedback.
Answered by
gorhill
Jun 18, 2026
Replies: 1 comment 4 replies
-
|
This should work (RFC9535-conform -- works at jSONPath Online Evaluator): |
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

You need to quote the query since it contains commas, this should work: