Hi João,

Thanks for testing it, and for the round-trip comparison.

On the $ ? (!((-$.a).abs() == 2)) row: it does catch the bug. Without
the fix, the printed form loses the parentheses around -$.a, and after
the reparse that row returns [{"a": -2, "b": -1}] instead of []. But
you're right that an empty expected result doesn't show much to someone
reading the test.

The attached v2 compares with -2 instead, so the correct result is the
document and the unfixed printed form returns []. Nothing else changed.

Regards,
Ishjaap Singh

Attachment: v2-0001-Fix-jsonpath-printing-of-operations-followed-by-a.patch
Description: Binary data

Reply via email to