10-12-2015, 11:14 AM
PHP كود :
implementation
uses dbxJSON;
const
response = '{ "status":true, "result":"السلام عليكم", "message":"" }' ;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
LJsonObj : TJSONObject;
begin
LJsonObj := TJSONObject.ParseJSONValue(TEncoding.UTF8.GetBytes(response),0) as TJSONObject;
try
ShowMessage(LJsonObj.Get('result').JsonValue.Value);
finally
LJsonObj.Free;
end;
end;

