Hi to everyone
From one online service I get JSON data according to following schema:
{
"error" : [
],
"result" : {
"NAME1" : "10",
"NAME2" : "20",
"NAME3" : "30"
........
}
}
I can read numerical value by using
----------
jData:=GetJSON(Memo1.Text);
jArray:=TJSONArray(jData.FindPath('result'));
for i:=0 to Pred(jArray.Count) do
begin
AppStr:=jarray.items.AsString; //get result 10,20,30...
end;
------
but I need read also the first value (NAME1 etc.): is there one easy way to get it ?.
Thanks
Riccardo