I have a WCF service that returns an object with properties long and List<string> . When I test the operation in the WCF application, everything works fine and the values ββare correct. However, I need to be able to invoke the service using jQuery and JSON. The value of the long property seems to change when I read it back in the OnSucceed function.
After searching, I found that JSON.stringify changing large values. So, in code like:
alert(JSON.stringify(25001509088465005));
... it will display the value as 25001509088465004 .
What's happening?
Demo here: http://jsfiddle.net/naveen/tPKw7/
source share