Skip to content

Commit b8f061e

Browse files
committed
fix AsString \u symbols
1 parent 987dc15 commit b8f061e

File tree

1 file changed

+3
-1
lines changed
  • src/Domain/HydraScript.Domain.BackEnd/Impl/Instructions/WithAssignment

1 file changed

+3
-1
lines changed

src/Domain/HydraScript.Domain.BackEnd/Impl/Instructions/WithAssignment/AsString.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.Text.Encodings.Web;
12
using System.Text.Json;
23
using System.Text.Json.Serialization;
34

@@ -10,7 +11,8 @@ public partial class AsString(IValue value) : Simple(value)
1011
WriteIndented = true,
1112
ReferenceHandler = ReferenceHandler.IgnoreCycles,
1213
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
13-
NumberHandling = JsonNumberHandling.AllowNamedFloatingPointLiterals
14+
NumberHandling = JsonNumberHandling.AllowNamedFloatingPointLiterals,
15+
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping
1416
});
1517

1618
public override IAddress Execute(IExecuteParams executeParams)

0 commit comments

Comments
 (0)