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

Karoly Balogh (Charlie/SGR) charlie at scenergy.dfmk.hu
Thu Jan 26 11:56:04 CET 2017


On Thu, 26 Jan 2017, Graeme Geldenhuys wrote:

> 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?

Yes. See:

Figure 5.

> Can I tell the JSON parser to treat data as-is, without any
> interpretation?

That is probably a bad idea, as it goes against JSON standards. Basically
the JSON you're trying to feed it is invalid. Fix the JSON, don't try to
force the parser to work it around.


More information about the fpc-pascal mailing list