LotusScript implementation of a reader and writer for JSON
Hello, There is a problem with a custom decimal symbol in regional setting in Windows and using JSONReader parser. This is an another variation of already reported problem "Decimal comma instead of decimal point in JSONWriter.AppendValue" from 7.9.2009. If Windows is using comma decimal separator insted of point then the function GetNumericValue in JSONReader has a problem because the following underlined code: If bIsFloatingPoint Then GetNumericValue = Cdbl(sReturn)Else GetNumericValue = Clng(sReturn) End If has expected the variable "sReturn" with something like "45,67" and not "45.67" which is of course a correct value from JSON string. There will be probably necessary to find what is a decimal separator in Windows first and then eventually replace it before calling Cdbl function. Milos Lapis MLC
Hello,
Thanks a lot for adding support for international decimal separators.