[fpc-pascal] JSON parser error due to my data values.

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Thu Jan 26 15:38:47 CET 2017


On 2017-01-26 14:31, geneb wrote:
> Does it work if you try "d:\\data"?


Yes. My problem was I didn't realise the JSON standard supports escaped
sequences.

My program is only reading from the JSON file at this point, not
writing. The JSON file is manually created with a text editor. So to be
on the safe side, I now implemented my code to support both "d:/data"
and "d:\\data" string data formats.


Regards,
  Graeme




More information about the fpc-pascal mailing list