Skip to content

Commit b473174

Browse files
committed
Fix for PositionConverter.Read SerializerSerializer - Issue #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.
1 parent 4aea7e6 commit b473174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GeoJSON.Text/Converters/PositionConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public override IPosition Read(
4444

4545
try
4646
{
47-
coordinates = JsonSerializer.Deserialize<double[]>(ref reader);
47+
coordinates = JsonSerializer.Deserialize<double[]>(ref reader, options);
4848
}
4949
catch (Exception e)
5050
{

0 commit comments

Comments
 (0)