mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 15:55:54 +01:00
test with internaljsonobject
This commit is contained in:
parent
a0aea669ee
commit
af4dc3119f
@ -464,9 +464,22 @@ begin
|
||||
AJsonObject.A[AName].Add(AValue.GetArrayElement(I).AsInt64);
|
||||
tkFloat:
|
||||
AJsonObject.A[AName].Add(AValue.GetArrayElement(I).AsExtended);
|
||||
tkClass:
|
||||
begin
|
||||
InternalObjectToJsonObject(
|
||||
AValue.GetArrayElement(I).AsObject,
|
||||
AJsonObject.A[AName].AddObject,
|
||||
TMVCSerializationType.stDefault,
|
||||
[],
|
||||
nil,
|
||||
nil,
|
||||
nil);
|
||||
end;
|
||||
else
|
||||
raise EMVCSerializationException.CreateFmt
|
||||
('Cannot serialize property or field "%s" of TypeKind tkArray or tkDynArray.', [AName]);
|
||||
begin
|
||||
raise EMVCSerializationException.CreateFmt
|
||||
('Cannot serialize property or field "%s" of TypeKind tkArray or tkDynArray.', [AName]);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user