Give better error messages for bad JSON input

Issue marijnh/tern_for_vim#71