I found a serious problem when converting the numerical numbers, e.g. from German locale.
There is set "," comma as separator by default, while I assume JSON only allows "." dot.
In US/ES this is maybe OK, but in many locales this will break into an exception.
Your Example Dataset.Serialize samples\delphi\basic\basic.dproj shows the issue when testing "Load empty dataset".
See following workaround below.
Use the already existing FormatSetting, which is defined for datetime right now only.
Hi Vinicius,
I found a serious problem when converting the numerical numbers, e.g. from German locale. There is set "," comma as separator by default, while I assume JSON only allows "." dot. In US/ES this is maybe OK, but in many locales this will break into an exception.
Your Example Dataset.Serialize samples\delphi\basic\basic.dproj shows the issue when testing "Load empty dataset".
See following workaround below. Use the already existing FormatSetting, which is defined for datetime right now only.
moreover, to avoid setting the DecimalSeparator every time, I would propose an optimization to do this only once, at the head of the function.
Optimized, to set the FormatSettings only once, for Float and DateTime. As compromize only set DecimalSeparator once, as below.