Skip to content

Filter Expression With Less Than Or Equal #55

@SoftCreatR

Description

@SoftCreatR

Test Data:

[
   {
      "key":0
   },
   {
      "key":42
   },
   {
      "key":-1
   },
   {
      "key":41
   },
   {
      "key":43
   },
   {
      "key":42.0001
   },
   {
      "key":41.9999
   },
   {
      "key":100
   },
   {
      "key":"43"
   },
   {
      "key":"42"
   },
   {
      "key":"41"
   },
   {
      "key":"value"
   },
   {
      "some":"value"
   }
]

Selector:

$[?(@.key<=42)]

Result (Proposal A):

--- Expected
+++ Actual
@@ @@
-'[{"key":0},{"key":42},{"key":-1},{"key":41},{"key":41.9999}]'
+'[{"key":0},{"key":42},{"key":-1},{"key":41},{"key":41.9999},{"key":"42"},{"key":"41"}]'

https://cburgmer.github.io/json-path-comparison/results/filter_expression_with_less_than_or_equal.html

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions