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,13 +464,26 @@ begin
|
|||||||
AJsonObject.A[AName].Add(AValue.GetArrayElement(I).AsInt64);
|
AJsonObject.A[AName].Add(AValue.GetArrayElement(I).AsInt64);
|
||||||
tkFloat:
|
tkFloat:
|
||||||
AJsonObject.A[AName].Add(AValue.GetArrayElement(I).AsExtended);
|
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
|
else
|
||||||
|
begin
|
||||||
raise EMVCSerializationException.CreateFmt
|
raise EMVCSerializationException.CreateFmt
|
||||||
('Cannot serialize property or field "%s" of TypeKind tkArray or tkDynArray.', [AName]);
|
('Cannot serialize property or field "%s" of TypeKind tkArray or tkDynArray.', [AName]);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
tkUnknown:
|
tkUnknown:
|
||||||
raise EMVCSerializationException.CreateFmt
|
raise EMVCSerializationException.CreateFmt
|
||||||
|
Loading…
Reference in New Issue
Block a user