Skip to content

Commit 5cf6101

Browse files
committed
Do no serialize every property as a string
1 parent 86bc175 commit 5cf6101

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

samples/AzureMapsControl.Sample/Pages/Layers/SymbolLayerWithFeatures.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
var feature = new AzureMapsControl.Components.Atlas.Feature<AzureMapsControl.Components.Atlas.Point>(new AzureMapsControl.Components.Atlas.Point(
1818
new AzureMapsControl.Components.Atlas.Position(-122.13284, 47.63699)
1919
), new Dictionary<string, object> {
20-
{ "title", new DateTime(2021, 6, 3) },
20+
{ "title", "Cafeteria" },
2121
{ "subtitle", "Building 40"}
2222
});
2323

src/AzureMapsControl.Components/Atlas/Feature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public override void Write(Utf8JsonWriter writer, IDictionary<string, object> va
8787
}
8888
else
8989
{
90-
writer.WriteStringValue(JsonSerializer.Serialize(kvp.Value));
90+
JsonSerializer.Serialize(writer, kvp.Value);
9191
}
9292
}
9393
writer.WriteEndObject();

0 commit comments

Comments
 (0)