-
Notifications
You must be signed in to change notification settings - Fork 77
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
--argjson
not supported
#180
Comments
This would probably make a nice first issue if someone wants to work on this. :) |
Note that
So |
In the meanwhile, @bb1, you can use |
I added a link to the test-case for this parameter in the original jq. But I'm still not quiet sure that I understand the difference. |
@bb1 difference using # parse and shadow $a binding with a new $a
$ jaq -nc --arg a '[1,2,3]' '($a | fromjson) as $a | $a'
[1,2,3]
# works same as
$ jq -nc --argjson a '[1,2,3]' '$a'
[1,2,3] |
This is useful when working with lists.
Here is a test from the original jq:
https://github.com/jqlang/jq/blob/c1276169d658783924add7ff72bb2e2d07b04141/tests/shtest#L289
Also great tool! Thanks for creating it! :)
The text was updated successfully, but these errors were encountered: