Hi I have some questions on the LGJson usage
for j:=0 to tempData.Count-1 do
begin
// copy
tempObj := arr.AsArray.AddNode(jvkObject);
tempObj.AsJson := tempData.Items[j].AsJson;
end;
if not bPaginar then
b := False;
FreeAndNil(tempData);
tempData, tempObj and arr are al TJsonNode.
What I'm doing is making a copy of tempData into arr.
Basically I get an array from internet (tempData) and must join all the objects I get into (arr). I get several times tempData, and I free that in each iteration. (FreeAndNil(tempData)).
That way of copying the object is fine? Or there is a better way?
Edit: Anyways it works, and in our application works almost the same that JsonTools, I get the same time syncing the same data.
Edit2: Our bottleneck is in another castle!