Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/DataSet.Serialize.Import.pas
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,7 @@ procedure TJSONSerialize.JSONObjectToDataSet(const AJSONObject: TJSONObject; con
if not Assigned(LJSONValue) then
Continue;
{$ELSE}
if not AJSONObject.TryGetValue(TDataSetSerializeUtils.FormatCaseNameDefinition(LField.FieldName), LJSONValue) then
AJSONObject.TryGetValue(LField.FieldName, LJSONValue);
if not Assigned(LJSONValue) then
if not (AJSONObject.TryGetValue(TDataSetSerializeUtils.FormatCaseNameDefinition(LField.FieldName), LJSONValue) or AJSONObject.TryGetValue(LField.FieldName, LJSONValue)) then
begin
// In case the JSON key name has dots, the native method TryGetValue doesn't find it
LJSONValue := AJSONObject.GetValue(LField.FieldName);
Expand Down