Skip to content

Commit

Permalink
Bug ToJSONArrayString and ToJSONObjectString on Lazarus
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciussanchez committed Jan 14, 2021
1 parent e3802cd commit 40451c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataSet.Serialize.pas
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function TDataSetSerializeHelper.ToJSONObjectString(const AOnlyUpdatedRecords: B
begin
LJSONObject := Self.ToJSONObject(AOnlyUpdatedRecords, AChildRecords);
try
Result := LJSONObject.ToString;
Result := {$IF DEFINED(FPC)}LJSONObject.AsJSON{$ELSE}LJSONObject.ToString{$ENDIF};
finally
LJSONObject.Free;
end;
Expand All @@ -259,7 +259,7 @@ function TDataSetSerializeHelper.ToJSONArrayString(const AOnlyUpdatedRecords: Bo
begin
LJSONArray := Self.ToJSONArray(AOnlyUpdatedRecords, AChildRecords);
try
Result := LJSONArray.ToString;
Result := {$IF DEFINED(FPC)}LJSONArray.AsJSON{$ELSE}LJSONArray.ToString{$ENDIF};
finally
LJSONArray.Free;
end;
Expand Down

0 comments on commit 40451c3

Please sign in to comment.