Skip to content

Commit 01354ad

Browse files
authored
Remove UnsafeRelaxedJsonEscaping (#6899)
1 parent 5858a79 commit 01354ad

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting.Azure/JsonSerialization/AzureStorageJsonUtilities.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.Text.Encodings.Web;
54
using System.Text.Json;
65
using System.Text.Json.Serialization;
76
using System.Text.Json.Serialization.Metadata;
@@ -32,7 +31,6 @@ private static JsonSerializerOptions CreateJsonSerializerOptions(bool writeInden
3231
var options = new JsonSerializerOptions(JsonContext.Default.Options)
3332
{
3433
WriteIndented = writeIndented,
35-
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping,
3634
};
3735
options.TypeInfoResolverChain.Add(AIJsonUtilities.DefaultOptions.TypeInfoResolver!);
3836
options.MakeReadOnly();

src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/CSharp/JsonSerialization/JsonUtilities.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4-
using System.Text.Encodings.Web;
54
using System.Text.Json;
65
using System.Text.Json.Serialization;
76
using System.Text.Json.Serialization.Metadata;
@@ -35,7 +34,6 @@ private static JsonSerializerOptions CreateJsonSerializerOptions(bool writeInden
3534
var options = new JsonSerializerOptions(JsonContext.Default.Options)
3635
{
3736
WriteIndented = writeIndented,
38-
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping,
3937
};
4038
options.TypeInfoResolverChain.Add(AIJsonUtilities.DefaultOptions.TypeInfoResolver!);
4139
options.MakeReadOnly();

0 commit comments

Comments
 (0)