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

jsonlint return value is wrong #12

dmeranda opened this Issue Nov 12, 2014 · 1 comment


None yet
1 participant

dmeranda commented Nov 12, 2014

It has been reported by @mattboyer (pull request #10 ) and @jannepeltola (pull request #11 ) that the "jsonlint" command line does not always return the expected return value. When feed incorrect JSON it may still return a value of 0 rather than a non-zero error value.

$ echo '{ "abc": [1, 2  }' | jsonlint -v
<stdin>:1:16: Error: Expected a ']' but saw '}'
   |  At line 1, column 16, offset 16
   |  Array started at line 1, column 9, offset 9
<stdin>: has errors

$ echo $?

$ jsonlint --version
jsonlint (demjson) version 2.2.2 (2014-06-25)

This comment has been minimized.

Show comment
Hide comment

dmeranda Nov 12, 2014


Fixed in commit 98d84a8 — Release 2.2.3


dmeranda commented Nov 12, 2014

Fixed in commit 98d84a8 — Release 2.2.3

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