-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TDateTime in SO(...) paremeters #153
Comments
The JSON itself doesn't specify the format of date/time, so these fields are stored just as string (or integer or FP-number) |
No, this example demostrate 2 method's of initialization for one library and result must be identical! var S: string := 'Str'; sJson1 = '{"S":"Str","D":45304.7648217708,"I":123,"F":12.12}' |
This can be fixed with using another declaration: |
Hello,
Is it impossible to create Json TDateTime field with SO paremeter?
var X := SO(['Date', Now]);
var sJson := X.AsJSON; // Here we have Double value for 'Date' in Json
var X := SO;
X.D['Date'] := Now;
var sJson := X.AsJSON; // Here we have DateTime value, as expected
The text was updated successfully, but these errors were encountered: