Przeglądaj źródła

* Fix compilation after TJSJSON returns now a JSValue, no longer object

michael 7 lat temu
rodzic
commit
961fe77586
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      demo/fpreport/frmmain.pp

+ 1 - 1
demo/fpreport/frmmain.pp

@@ -609,7 +609,7 @@ begin
   console.log('Result of call ',xhr.Status);
   if (xhr.status = 200) then
     begin
-    J:=TJSJSON.parse(xhr.responseText);
+    J:=TJSJSON.parseObject(xhr.responseText);
     A:=TJSObjectDynArray(J.Properties['data']);
     for I:=0 to Length(A)-1 do
       begin