You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just noticed an issue with PositionConverter. Whenever the coordinates list contains [-Infinity] or any other string literals, the converter throws an exception.
In out code, we do pass SerializationOptions with NumberHandling=JsonNumberHandling.AllowNamedFloatingPointLiterals; but since it's not passed along in PositionConverter.Read(), the deserialization fails when encountering string literals.
…et#18
Passing the SerializationOptions along in the internal call to JsonSerializer in PositionConverter.Read(). See issue for details and repro with floating point string literals.
Hi,
Just noticed an issue with PositionConverter. Whenever the coordinates list contains [-Infinity] or any other string literals, the converter throws an exception.
In out code, we do pass SerializationOptions with NumberHandling=JsonNumberHandling.AllowNamedFloatingPointLiterals; but since it's not passed along in PositionConverter.Read(), the deserialization fails when encountering string literals.
Here:
GeoJSON.Text/src/GeoJSON.Text/Converters/PositionConverter.cs
Line 47 in 4aea7e6
Fix is simple, just pass the converter as a param of JsonSerialzier.Deserialize(double[]))(ref reader, options);
Cheers,
Laura
The text was updated successfully, but these errors were encountered: