mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-25 07:35:36 +01:00
13 lines
243 B
C#
13 lines
243 B
C#
|
using System.Text.Json;
|
|||
|
|
|||
|
namespace Giants.Services
|
|||
|
{
|
|||
|
public static class ObjectExtensions
|
|||
|
{
|
|||
|
public static string SerializeToJson(this object obj)
|
|||
|
{
|
|||
|
return JsonSerializer.Serialize(obj);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|