Fix report of bad line numbers in JSON parser.

- fix error reported in issue 199