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

do exit if parse error #53

Closed
gihnius opened this issue Dec 20, 2012 · 1 comment
Closed

do exit if parse error #53

gihnius opened this issue Dec 20, 2012 · 1 comment

Comments

@gihnius
Copy link

gihnius commented Dec 20, 2012

when I do this:
cat file.json | jq '.'
the jq exit when it met an unexpected line in file.json, can you add some features the skip this or log down the error when parsing a stream ?
I want it parse the whole file although there are some corrupt lines in the file.

@stedolan
Copy link
Contributor

I'm afraid you're really going to have to sanitize the input yourself before passing it to jq. jq can't fix arbitrarily bad input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants