I'm using SmartClient 12.1 in combination with a RubyOnRails server. I use a very old version of Rails that I'm trying to upgrade right now. One thing that I need to fix is that the new Rails versions sends decimals in JSON responses as strings (eg. "10.1"). In the version of Rails that I am upgrading it also did that, but I could use a plug-in that still allowed me to send the numbers as floats. This sort of works but seems to be highly discouraged.
Basically my question is: is there an easy way of having a data source (or another component) interpret these strings as numbers? Else, I need to fix this on the server somehow. I've read somewhere that JSON not necessarily interprets the numbers as floats, but it might and therefore strings are safer, but of course this affects SmartClient.
Basically my question is: is there an easy way of having a data source (or another component) interpret these strings as numbers? Else, I need to fix this on the server somehow. I've read somewhere that JSON not necessarily interprets the numbers as floats, but it might and therefore strings are safer, but of course this affects SmartClient.
Comment