RobotApp/RobotApp.Common.Shares/JsonOptionExtends.cs
Đăng Nguyễn 0d97684f70 update
2025-09-15 17:39:02 +07:00

19 lines
428 B
C#

using System.Text.Json;
namespace RobotApp.Common.Shares;
public class JsonOptionExtends
{
public static readonly JsonSerializerOptions Read = new()
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
WriteIndented = true,
};
public static readonly JsonSerializerOptions Write = new()
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
WriteIndented = true,
};
}