issue 116
System.Text.Json defaults suck and we want it to work like Newtonsoft.Json
This commit is contained in:
parent
f6f9113066
commit
be4e03d8d7
1 changed files with 2 additions and 1 deletions
|
|
@ -615,7 +615,8 @@ namespace SecondBotEvents.Services
|
||||||
{
|
{
|
||||||
public static readonly JsonSerializerOptions UnsafeRelaxed = new()
|
public static readonly JsonSerializerOptions UnsafeRelaxed = new()
|
||||||
{
|
{
|
||||||
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping
|
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping,
|
||||||
|
IncludeFields = true,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue