Delphi ActiveX
Delphi ActiveX
Decode HTML Entity Encoded JSON
See more JSON Examples
Decodes an HTML entity encoded string to JSON.Chilkat Delphi ActiveX Downloads
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Chilkat_TLB;
...
procedure TForm1.Button1Click(Sender: TObject);
var
success: Integer;
sb: TChilkatStringBuilder;
begin
success := 0;
sb := TChilkatStringBuilder.Create(Self);
success := sb.Append('{"xyz": "abc"}');
sb.EntityDecode();
// This is a test comment;
Memo1.Lines.Add(sb.GetAsString());
// Output is:
// {"xyz": "abc"}
end;