0
I’m trying to create a JSON with values that have been populated by the user. So far I have it, but it’s not working
procedure TOAuth2TesterFrm.Button2Click(Sender: TObject);
var
nome_evento: String;
inicio: String;
fim: String;
objeto: TJSONObject;
begin
objeto.AddPair('nome',nome_evento);
objeto.AddPair('data_inicio',inicio);
objeto.AddPair('data_fim',fim);
LogMem.Text:=TJSON.ObjectToJsonString(objeto);