jnv icon indicating copy to clipboard operation
jnv copied to clipboard

Support arbitrary numbers

Open 01mf02 opened this issue 6 months ago • 0 comments

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.

01mf02 avatar Aug 14 '24 10:08 01mf02