-
Notifications
You must be signed in to change notification settings - Fork 258
Closed
Description
When we try to use the Path processing Filter [] on numeric values, it is inconsistent compared to text values.
Consider the following input:
[
{
"txt":"one",
"num":1
},
{
"txt":"two",
"num":2
},
{
"txt":"three",
"num":3
},
{
"num":4
},
{
"txt":"five"
}
]
Inconsistencies:
-
$[num]does not return anything, but$[txt]returns all the objects in whichtxthas any value.

-
In the input, if you change the value in Object 4 from
"num":4to"num":3, then$[num]starts working but only returns that one object even when others have value and we are not specifically filtering for num=3
Metadata
Metadata
Assignees
Labels
No labels
