mconigliaro/jazor — Issue #5: Invalid json via stdin just passes through with exit code 0
Author: alexforrow
Created: 2012-03-05 16:48:52+00:00
State: open

Previous to v0.1.0, when invalid JSON was passed in, jazor returned something like:

echo "foo" | jazor;echo $?
E, [2012-03-05T16:45:11.354535 #2352] ERROR -- : 745: unexpected token at 'foo
'
1

This was very useful for validating JSON.

However, since v0.1.0 it just seems to pass straight to stdout and exits with 0, just like everything was ok:

echo "foo" | jazor;echo $?
foo
0