mycroforge/MicroForge.CLI/Shared.cs
2024-04-21 23:56:27 +02:00

20 lines
529 B
C#

using System.Text.Json;
namespace MicroForge.CLI;
public static class Shared
{
public static class DefaultJsonSerializerOptions
{
public static readonly JsonSerializerOptions Default = new()
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
};
public static readonly JsonSerializerOptions CamelCasePrettyPrint = new()
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
WriteIndented = true
};
}
}