Skip to content

Commit

Permalink
Update JsonExtensions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescrosswell committed Oct 12, 2023
1 parent adabd5d commit 89684a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Sentry/Internal/Extensions/JsonExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ public static void WriteDynamicValue(
{
writer.WriteStringValue(formattable.ToString(null, CultureInfo.InvariantCulture));
}
else if (value.GetType().ToString() == "System.RuntimeType")
{
writer.WriteStringValue(value.ToString());
}
else
{
if (!JsonPreserveReferences)
Expand Down Expand Up @@ -855,7 +859,7 @@ public static void WriteString(
}

#if TRIMMABLE
[JsonSerializable(typeof(Internal.GrowableArray<int>))]
[JsonSerializable(typeof(GrowableArray<int>))]
[JsonSerializable(typeof(Dictionary<string, bool>))]
internal partial class SentryJsonContext : JsonSerializerContext
{
Expand Down

0 comments on commit 89684a2

Please sign in to comment.