Added better output for JSON parsing errors. Fixes #64