开发者

How to correctly serialize C# long number using controller's Json method in Asp.net mvc?

Mvc Controller.Json method serializes long number 3458764513820540917 to 3458764513820541000. I nee开发者_如何转开发d POCO with int64 property. How can I serialize C# long to json string "3458764513820540917"?


All numbers in JavaScript are, in fact, 64-bit floats.

It looks to me like you're hitting the range/precision limitations of that format on the client-side, rather than this being a problem with (de)serialisation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜