Closed GoogleCodeExporter closed 9 years ago
Can you give me an example of how you're calling the code and what culture
you're in? This should work. You can see an example of this in
JsonExSerializerTests\LocalizationTests.cs. Also the WriteValue method for
doubles in JsonWriter looks like this:
{{{
public virtual IJsonWriter WriteValue(double value)
{
PreWrite(OpType.OpValue);
_writer.Write(value.ToString("R", culture));
return this;
}
}}}
and culture here is the InvariantCulture.
Original comment by elliott....@gmail.com
on 28 May 2011 at 5:00
the culture was French with decimal separator "," and currency decimal
separator ","
and the type of the field should be "decimal" not double or float.
I agree with you, it works for double and float, but not for "decimal"
Original comment by sylvain....@gmail.com
on 28 May 2011 at 10:55
Ok, somehow I missed the decimal type in your description.
Original comment by elliott....@gmail.com
on 31 May 2011 at 1:35
This issue was closed by revision r278.
Original comment by elliott....@gmail.com
on 31 May 2011 at 1:57
Original issue reported on code.google.com by
sylvain....@gmail.com
on 28 May 2011 at 3:48