[fpc-pascal] JSON parser error due to my data values.
Graeme Geldenhuys
mailinglists at geldenhuys.co.uk
Thu Jan 26 11:49:09 CET 2017
Hi,
I have the following snippet in a JSON file.
================
"Settings": {
"SQLDir": "d:\data"
}
================
When I load the complete JSON file using FPC's jsonparser.pp unit I get
a parser error.
"Invalid character at line 6, pos 16: 'd' "
It seems like it is trying to interpret the field data value like a
C/C++ escape sequence. eg: \n meaning NewLine
I such escape sequence processing a JSON standard? Can I tell the JSON
parser to treat data as-is, without any interpretation?
Regards,
Graeme
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
My public PGP key: http://tinyurl.com/graeme-pgp
More information about the fpc-pascal
mailing list