mirror of
https://github.com/davidkaya/aryx.git
synced 2026-07-28 23:48:39 +02:00
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
16 lines
379 B
C#
16 lines
379 B
C#
using System.Text.Json;
|
|
using System.Text.Json.Serialization.Metadata;
|
|
|
|
namespace Aryx.AgentHost.Services;
|
|
|
|
internal static class JsonSerialization
|
|
{
|
|
public static JsonSerializerOptions CreateWebOptions()
|
|
{
|
|
return new JsonSerializerOptions(JsonSerializerDefaults.Web)
|
|
{
|
|
TypeInfoResolver = new DefaultJsonTypeInfoResolver(),
|
|
};
|
|
}
|
|
}
|