Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Database/DataSnap    [ Add a report in this area ]  
Report #:  103661   Status: Closed
TJSONString.ToString not convert \ and control character
Project:  Delphi Build #:  16.0.4429.46931
Version:    16.4 Submitted By:   mustapha wang
Report Type:  Crash / Data loss / Total failure Date Reported:  2/23/2012 7:58:57 PM
Severity:    Critical / Show Stopper Last Updated: 9/5/2012 7:58:37 PM
Platform:    All platforms Internal Tracking #:  
Resolution: Duplicate (Resolution Comments) Resolved in Build: : 17.0.4625.53395
Duplicate of:  103674
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
http://www.json.org/string.gif

function TJSONString.ToString: UnicodeString;
begin
  if FStrBuffer <> nil then
    Exit('"' + AnsiReplaceStr(FStrBuffer.ToString, '"', '\"') + '"');
  Result := NullString;
end;

your code only convert ".
Steps to Reproduce:
None
Workarounds
None
Attachment
None
Comments

Tomohiro Takahashi at 2/23/2012 11:07:00 PM -
Could you please attach sample project to confirm your issue?

Tomohiro Takahashi at 2/24/2012 7:52:07 AM -
Is your issue same as QC#103674 ?

mustapha wang at 3/1/2012 12:11:39 AM -
yes,it should be encode as json protocol.
http://www.json.org/string.gif

Server Response from: ETNACODE01