You are not logged in.
Pages: 1
Delphi 11.1, mORMot2 commit ec20eed
Function InitArrayFromResults() does not serialize an array with length 1. I have the following function:
if json <> '' then
begin
TDocVariantData(pmoLessonList).InitArrayFromResults(json);
for var run: PVariant in TDocVariantData(pmoLessonList).Items do
...
end;
With JSON like [{...}, {...}] I get an array back. With JSON of this format [{...}], I get back an empty (pmoLessonList=[]) array.
With best regards
Thomas
Offline
You are right!
Should be fixed by https://github.com/synopse/mORMot2/commit/3cd541a9
Offline
Pages: 1