You are not logged in.
Pages: 1
Hi,
why is null as double in mormot2 not excepted?
this code works fine in mormot1.
procedure TForm1.Button1Click(Sender: TObject);
type
TTestRec = packed record
a: Integer;
b: Double;
c: RawUTF8;
end;
TTestRecDynArray = array of TTestRec;
var
hTmpBuff: TSynTempBuffer;
hArr: TTestRecDynArray;
begin
hTmpBuff.Init('[{"a":0,"b":null,"c":"abc"}]');
if (DynArrayLoadJSON(hArr, hTmpBuff.buf, TypeInfo(TTestRecDynArray)) = nil) then
ShowMessage('error');
hTmpBuff.Done;
end;
Offline
Offline
thx, now it works
Offline
Pages: 1