One short example:
var
JsonObj: JsonObject;
JsonTok: JsonToken;
Data: text;
begin
JsonObj.Add('Test','Version="1.1.0.1"');
JsonObj.SelectToken('Test',JsonTok);
Data:= JsonTok.AsValue.AsText;
Message('%1',Data);
end;
If you run this code, the message will give you>
Version=\"1.1.0.1\"
This is not correct for me. I will expect the original value. Charaters like \u003e and \u003c are unescaped correctly.
The "why" for me is, that as part of JSon I am transferring XML data, which I need to parse. I cannot load them because I am getting
The following exception was encountered when processing XML data: ''' is an unexpected token. The expected token is '"' or '''
One short example:
If you run this code, the message will give you>
This is not correct for me. I will expect the original value. Charaters like \u003e and \u003c are unescaped correctly.
The "why" for me is, that as part of JSon I am transferring XML data, which I need to parse. I cannot load them because I am getting