JSON Path Fundamentals Flashcards

1
Q

How do you check if a value matches multiple values in a list?

A

Using the in operator:
[?(@.size in ['S', ‘M'])]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you negate a filter?

A

! negates a filter:
[?(!@.isbn)]
Note: matches elements that do not have the isbn property.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly