Skip to content
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

Support arbitrary numbers #56

Open
01mf02 opened this issue Aug 14, 2024 · 0 comments
Open

Support arbitrary numbers #56

01mf02 opened this issue Aug 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@01mf02
Copy link

01mf02 commented Aug 14, 2024

jnv currently seems to interpret numbers as floating-point. This can be problematic because it means that certain valid JSON values cannot be parsed:

$ echo "1e500" | jnv
Error: number out of range at line 1 column 5

Furthermore, it can lead to loss of precision.

A potential solution could be to use hifijson, which would also make the conversion from serde_json::Value into jaq_interpret::Val unnecessary.

@ynqa ynqa added the bug Something isn't working label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants