Improve JSON parser error format. Fixes #317.

Errors are now displayed as "file(line): Error: message".