Deserialising double values

Peter Hagen <[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <[email protected]>
Hi,

I was wondering if anyone knows about an issue with deserializing double, float and decimal values, with an MVC 4 site. The values are posted as JSON to the server. When running on Windows, it deserialises correctly. I assume its a culture issue, by which the current culture is used, instead of the invariant culture. The site is running on a manual build Mono 4.0.4.1 on Ubuntu 12.04. 

I set up a test page which posts the values to the action, which returns the same object again. Here below you can see the values that are posted, and received again:

Posted:

> dValue: 3.4563000202179
> dcValue: 12.3457
> fValue: 0.12345

Received:

> dValue: 34563000202179
> dcValue: 123457
> fValue: 12345

I was searching if there is a know bug, or a known working workaround for this. Does anyone have an idea?

Cheers

Peter

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.