开发者

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

开发者 https://www.devze.com 2023-03-16 23:19 出处:网络
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 \"34587645138

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

精彩评论

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

关注公众号