-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
metrics with 0 value ( also false ) are mapped to NaN #25
Comments
Thank you for reporting this! I'll look into it 👍 |
thanks for you prompt action |
Could you paste the JSON and the query you are using, so that I reproduce this? |
i'm using a private backend so you don't have acess to it Path : /client Query string : type=X&attributes=* $.client[?(@.name=='$name')].name { anyway you can reproduce it using any data with 0 as a value |
I can reproduce it with your example. I think the error occurs when there's only one item in the array. |
i don't think it related to the number of items |
since i have the same behaviour with a lot of items |
Yeah, you're right. Zeros:
Booleans:
Looks like it fails when all values are "falsy". |
in fact in depends on the selct Json Path |
and if you do not choose any filter like (?(@.name=='$name') it should be ok |
and please note that it was working fine in previous version |
I've found the issue, and working on a fix. |
perfect thanks |
Fixed in v0.7.1. Let me know if you're still having issues! |
i apreciate well your reactivity :) |
hello Marc ,
can you please help resolving the floowing issue :
metrics with 0 value ( also false ) are mapped to NaN
ENV :
FYI : mapping is working well with previous version ( 0.6.4 )
Regards
The text was updated successfully, but these errors were encountered: