xq icon indicating copy to clipboard operation
xq copied to clipboard

Pure rust implementation of jq

Results 16 xq issues
Sort by recently updated
recently updated
newest added

- [ ] `halt`, `halt_error`, `halt_error(exit_code)` - [ ] `$__loc__` - [ ] `$ENV`, `env` - [ ] builtins - [x] #89 - [ ] Math functions - [x] #116...

This feature, in particular, is quite important to me: the ability to merge multiple documents in one query. It is a major feature of jq, and one missing from both...

Currently these are formatted with scientific notation (in some cases lossily). For example (from a user JSON object from the Twitter API): ```bash $ xq .id < twitter-test.json 1.470944601309528e18 $...

TODO: - Consider changing `%` behavior and document it. (`jq` performs `/` as a floating-point-number operation, but `%` is something like `(x as int) % (y as int)`.) - Consider...

documentation

Currently xq seems to compile all the prelude functions even if they are not needed. This is overhead as most prelude functions are not required in most use cases. Also,...

enhancement

To _really_ implement this without expand JSON in memory, we need one of followings - generator feature so that we can yield to pass value into the VM while keeping...

fuzz found ```bash $ cargo fuzz fmt xq artifacts/xq/minimized-from-35b822bd4dbd5db9bca8f9b3c812cec01a6503fd Output of `std::fmt::Debug`: ( "tostring*8E18 ", "8 ", ) ``` Essentially this is `"a" * 8E18` that cause an allocation with...

Perhaps compile error as well, but that'll require the location information propagated to AST. https://crates.io/crates/miette seems to be nice.

enhancement

Currently xq can parse but ignores timezone offset in `strptime/1`. This is actually the same behavior of jq, but considered as a critical bug when we handle datetime with timezone...

bug

`--compatible` and `--nocompatible` maybe. Compatible mode should respect the behavior of `jq` as much as possible (a.k.a. as long as it doesn't require too much effort) when `jq` returns non-error,...

enhancement