Hi I am starting to use the json library and json commands, replacing my own implementation of json, and I am running into a number conversion issue.
I.E for returning latitude and longitude data in a json object, the decimal point must be a dot in the json returned. But on a french 4D system, number are returned with a comma instead of point. When adding a number using, $latitude where $latitude contains a decimal number (i.e. 43,657899) : $json->add(latitude¹; $latitude) The json reads latitude¹ : 43,657899 which is an incorrect value When using $json->(add(latitude¹; replace string(string($latitude); ,¹;¹.¹)) The json reads latitude¹ : ¹43.657899¹ wich is a string value not a number Anyone has a solution, knowing that the json object cannot be manipulated prior to its use in javascript. Thanks for your help. 4D v12 mac and windows, Active4D 6.0 in production and Active4D 6.1 in development -- Robert Ernens HCTBA Consulting Look2BookOnline - Web-à-la-Carte 4 Rés. Les Bois du Cerf 91450 Etiolles Tél.: +33.950.58.95.80 GSM : +33.611.78.44.68 _______________________________________________ Active4D-dev mailing list [email protected] http://list.aparajitaworld.com/listinfo/active4d-dev Archives: http://active4d-nabble.aparajitaworld.com/
