20 lines
529 B
C#
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
|
|
};
|
|
}
|
|
} |