I am using a non en-US culture which is for Brazil (pt-BR). They use a comma for decimal separator. But When I try to serialize json and send it to javascript using the function below I get the numbers represented with period instead of comma.
var mydata = new { name="abc", value= 12.22};
JsonSerializerSettings settings = new JsonSerializerSettings() { Culture= new CultureInfo("pt-BR")};
JsonConvert.SerializeObject(mydata, settings)
I was expecting the value to go as 12,22(which is the brazil) instead of 12.22.
Does any one know what I have to do to make sure the serializer converts decimals based on the culture i give it.