Hi,

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:
http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf

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.

Charlie
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to