fcl-json: fixed compile with fpc 3.0.4

git-svn-id: trunk@42888 -
This commit is contained in:
Mattias Gaertner 2019-09-01 13:39:23 +00:00
parent 3bc01b590e
commit 4e6e929fb5

View File

@ -1016,12 +1016,14 @@ Var
SS : TStringStream;
begin
if Assigned(JPSH) then
JPSH(JSON,useUTF8,Result)
JPSH(JSON,UseUTF8,Result)
else
begin
{$IF FPC_FULLVERSION>30300}
if UseUTF8 then
SS:=TStringStream.Create(JSON,TEncoding.UTF8)
else
{$ENDIF}
SS:=TStringStream.Create(JSON);
try
Result:=GetJSON(SS,UseUTF8);