chore: infrastructure code

This commit is contained in:
Mikhail Shabanov committed 2021-05-28 15:27:36 +02:00
1 parent 44c89f2e5d
commit 14aae034af
7 files changed
+63 -3

No files matched your search

@@ -0,0 +1,12 @@
using System.Text.Json;
namespace WotBlitzStatisticsPro.Blazor.Helpers
{
public static class Formatter
{
public static string Json<T>(this T data)
{
return JsonSerializer.Serialize(data, new JsonSerializerOptions { WriteIndented = true });
}
}
}