Open Ephemiere opened 6 years ago
Looking in Utf8Json.Formatters.DecimalFormatter.Deserialize, if I replace:
ArraySegment<byte> arraySegment = reader.ReadNumberSegment();
with
ArraySegment<byte> arraySegment = reader.ReadNextBlockSegment();
it seems to work.
Any update on this? I'm encountering the same issue and looking for a workaround.
Given:
The deserialization throws an exception: Utf8Json.JsonParsingException: 'expected:',', actual:'E', at offset:14'
This is a contrived case but it's occurring in our production and we have to roll back to Newtonsoft. The corresponding decimal.Parse method returns ok for the give parameter: `decimal.Parse("-2.8E-2", NumberStyles.Float, CultureInfo.InvariantCulture);
Thank you