Page 1 of 1

JsonData does not hold a double.

Posted: 25 Jul 2009, 10:36
by shaitaaan
Strange problem...

The client is not able to typecast data sent which is supposed to be double and disconnects.

For example, the server sends x = 23.0D as a double.
But when it arrives at the client, x = 23.

Now when you say, double x = (double)data["x"];
The client says JsonData does not hold a double and disconnects. I hope I am clear.


Thank you.

Posted: 26 Jul 2009, 11:00
by shaitaaan
Figured out the problem... Miscommunication between server and client programmers. The server was using floats.
Sorry. :!:

Posted: 26 Jul 2009, 16:20
by ThomasLund
No problemo :-)

Rather voice the potential issue than holding back and letting a bug slip by