-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
jq is hanging when trying to extract data from json #1682
Comments
Using jq 1.5:
Same thing with jq 1.4 on MacOS. Note carefully the occurrences of "\(" For future reference, please ask usage questions at stackoverflow.com with the jq tag: |
actually i was using that syntax only. it is working in jq 1.5(i was using jq 1.5 on jqplay.org) but not in jq 1.4 on solaris. |
the same commands are working on jq 1.4 and 1.5 for Windows. i don't know whether this is issue with Solaris jq 1.4 |
it seems there is some bug in Jq 1.4 for Solaris as this command is working on Windows, Linux, OSX. below is the out put of the truss which is equivalent of strace. can you please check
|
@sudhakarcs50 - I'm afraid I won't be able to help other than to suggest that you try to upgrade your version of jq on Solaris. jq 1.4 is very old. Installing the "master" version of jq would probably be no more difficult than installing jq 1.5 so if I were in your shoes, I'd start with the "master" version. |
@pkoppstein, it seems JQ 1.5 for Solaris was not released and our admin team had issues with compiling from the source tar ball |
@sudhakarcs50 - One does not need admin permissions to install jq. |
Hi,
My Json file has following structure
}
i want to extract the fileds group1.field0, group1.name,group2.field1, group1.field3
the command i am running is below
when i run the above command in Solaris it just hangs and does nothing. when i run the above command with only 2 fields i am getting data
can someone please help me what am i doing wrong. the first command is working on jqplay.org which uses jq version 1.5 and jq version on our server is 1.4. i don't know whether lower version may be the issue(latest version for Solaris is 1.4 only).
The text was updated successfully, but these errors were encountered: