I have an issues as follows:
On my local, Azure, + 3 other servers my mapping code looks at latitude and longitude coordinates that are stored in a Sitecore item.
On my new QA and PROD Sitecore servers, that I have not used before as they are sitting on a new hosting provider, I have the following issue:
If you look at the picture below:
The coordinates are stored correctly but the final output when serialized ot Json is like this:
Anyone got any ideas why the decimal point would have been stripped out?
as I said, the code works on many different environments so I am thinking the new hosting provider has set something that is different to my other working environments.
I will keep investigating but thought I would put this out there.
The answer was this:
Change this:
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
to this:
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="en-AU" uiculture="en" />