pkoppstein

Results 40 issues of pkoppstein

The following is much faster (3x in some instances) than the current `def` in builtins.jq ``` def transpose: [range(0; map( length ) | max) as $i | [.[][$i]]]; ``` Even...

composer require swaggest/json-cli Info from https://repo.packagist.org: #StandWithUkraine Using version ^1.11 for swaggest/json-cli ./composer.json has been updated Running composer update swaggest/json-cli Loading composer repositories with package information Updating dependencies Your requirements...

> $ echo '{"do": 1, "re": 2}' \| jq 'keys' It would be good to use or at least mention `keys-unsorted` > $ echo '{"do": 1, "re": 2}' \| jq...

1. The "Implementations" section would be much more useful if it distinguished between complete or nearly complete implementations on the one hand, and all the others. A three-way categorization would...

Using `knead` results in a numpy error, e.g. ``` File "/usr/local/lib/python3.11/site-packages/openpyxl/compat/numbers.py", line 16, in NUMERIC_TYPES = NUMERIC_TYPES + (numpy.short, ^^^^^^^^^^^ AttributeError: module 'numpy' has no attribute 'short' ``` I believe...

Contrast: ``` $ jq -nc --slurpfile x

One of the nice things about gojq is that if x and y are integers, then `(x - (x % y)) / y` will be properly evaluated and recognized as...

Using jaq.jq below: ``` $ jq -n -f jaq.jq 1 2 $ goq -n -f jaq.jq 1 2 $ jaq -n -f jaq.jq Error: Unexpected token while parsing definition, expected...

Perhaps one day jaq will support modules in some shape or form. In the meantime, it would be very helpful if jaq could at least ignore a valid jq "module"...

The 1.0 beta announcement mentions support for the --nul-output command-line option. Please note that jq 1.7rc1 has removed that option, and mentions instead: ``` --raw-output0 implies -r and output NUL...