mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 07:45:54 +01:00
added more flexibility to ObjectDict
This commit is contained in:
parent
6fa868b33f
commit
4caf183398
Binary file not shown.
@ -26,7 +26,7 @@ uses
|
||||
|
||||
procedure REPLEmit(const Value: string);
|
||||
begin
|
||||
write('#> ');
|
||||
Write('#> ');
|
||||
WriteLn(Value);
|
||||
end;
|
||||
|
||||
|
@ -504,6 +504,18 @@ begin
|
||||
Continue;
|
||||
end;
|
||||
|
||||
if lObj.Data is TJsonObject then
|
||||
begin
|
||||
lOutObject.O[lName] := TJsonObject(TJsonObject(lObj.Data).Clone);
|
||||
Continue;
|
||||
end;
|
||||
|
||||
if lObj.Data is TJsonArray then
|
||||
begin
|
||||
lOutObject.A[lName] := TJsonArray(TJsonArray(lObj.Data).Clone);
|
||||
Continue;
|
||||
end;
|
||||
|
||||
if TDuckTypedList.CanBeWrappedAsList(lObj.Data, lList) then
|
||||
begin
|
||||
fCurrentSerializer.ListToJsonArray(lList, lOutObject.A[lName], TMVCSerializationType.stDefault, [],
|
||||
|
Loading…
Reference in New Issue
Block a user