Skip to content

Commit

Permalink
Bugfix overload
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciussanchez committed Dec 15, 2023
1 parent 7a036ca commit 835b7e3
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 @@ -166,7 +166,7 @@ TDataSetSerializeHelper = class Helper for TDataSet
/// Only the keys that make up the DataSet field list will be loaded. The JSON keys must have the same name as the
/// DataSet fields. It's not case-sensitive.
/// </remarks>
procedure LoadFromJSON(const AJSONObject: TJSONObject; const ARootElement: string = ''; const AOwns: Boolean = True); overload;
procedure LoadFromJSON(const AJSONObject: TJSONObject; const ARootElement: string; const AOwns: Boolean = True); overload;
/// <summary>
/// Loads the DataSet with data from a JSON array.
/// </summary>
Expand Down Expand Up @@ -350,7 +350,7 @@ procedure TDataSetSerializeHelper.LoadFromJSON(const AJSONObject: TJSONObject; c
LoadFromJSON(AJSONObject, EmptyStr, AOwns);
end;

procedure TDataSetSerializeHelper.LoadFromJSON(const AJSONObject: TJSONObject; const ARootElement: string = ''; const AOwns: Boolean = True);
procedure TDataSetSerializeHelper.LoadFromJSON(const AJSONObject: TJSONObject; const ARootElement: string; const AOwns: Boolean = True);
var
LJSON: {$IF DEFINED(FPC)}TJSONData{$ELSE}TJSONValue{$ENDIF};
LJSONSerialize: TJSONSerialize;
Expand Down

0 comments on commit 835b7e3

Please sign in to comment.