You are not logged in.
Pages: 1
I have a JSON object created from ObjectToJSON in an interfaced-based service which returned in the content field of a TServiceCustomAnswer.
{
ID: 8201104080000,
Code: "",
LastName: "Cruz",
FirstName: "Emily",
MiddleName: "Grant",
Suffix: "",
BarCode: "8201104080000R",
CardNo: 0,
Programme: "IGNATIAN SPIRITUALITY & FORMATION OFFICE",
Section: "",
PatronType: "E-AA"
}
The client uses JSTONToObject to fill up a TSQLRecord Object. However the ID is assigned to object is 2011511936 instead of 8201104080000.
Can someone tell me what is wrong?
Offline
I downloaded the latest nightly build (1.18.1752) and still got the same result. I'm using windows 8.1 and Delphi XE2.
Done some tests. The maximum ID value that JSONToObject can handle properly is 2147483647 (i.e. the maximum value of an integer). Seems that function GetInteger (line 22983 from SynCommons.pas and called from mORMot.pas line 42084) cannot handle values more than 2147483647.
Last edited by JerryC_ph (2015-08-09 07:03:30)
Offline
Please try http://synopse.info/fossil/info/3f647350ba
Thanks for the feedback.
Offline
It's working as expected.
Thanks ab.
Offline
Pages: 1