json parser line numbers
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
The line numbering of the json parser has been changed recently.
It used to say "Error at line 1"... when there was an error in the first line, but now it says "Error at line 0"..., which is not good
Steps to reproduce:
program Project1;
{$mode objfpc}{$H+}
uses
fpjson,jsonparser
{ you can add units after this };
begin
GetJSON('[{""x"": 123},"||||"{d}]');
end.
Mantis conversion info:
- Mantis ID: 37836
- OS: linux
- OS Build: opensuse
- Build: r46992
- Platform: amd64
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 47344 (#af415ddc)
- Target version: 3.2.2