Skip to content
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

error-handling discrepancy when reading mal-formed JSON #264

Open
pkoppstein opened this issue Aug 15, 2024 · 0 comments
Open

error-handling discrepancy when reading mal-formed JSON #264

pkoppstein opened this issue Aug 15, 2024 · 0 comments

Comments

@pkoppstein
Copy link

try/catch work as expected with jq and jaq, but gojq has trouble with `"\u263"':

for jq in jq jaq gojq ; do 
  echo jq=$jq
  (echo '"a\u263"'; echo '"def"' ) | $jq -nr 'recurse( try inputs catch .) | select(.) | length'
done
jq=jq
41
3
jq=jaq
28
3
jq=gojq
105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant