Browse Source

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

michael 7 years ago
parent
commit
961fe77586
1 changed files with 1 additions and 1 deletions
  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