cburgmer / json-path-comparison

Comparison of the different implementations of JSONPath and language agnostic test suite.
https://cburgmer.github.io/json-path-comparison/
GNU General Public License v3.0
84 stars 26 forks source link

Added queries with filters with length and length() #108

Closed danielaparker closed 2 years ago

danielaparker commented 2 years ago

This pull request adds two queries that cover binary expressions in filters that refer to the length property and the length() function respectively, specifically,

$[?(@.length == 4)]

and

$[?(@.length() == 4)]

Goessner JavaScript JSONPath supports the former, Jayway Java JSONPath the latter.

The Comparisons currently have some coverage for the length property, but not in filters. There is no coverage for the length function.