mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 19:30:06 +02:00
chore: infrastructure code
This commit is contained in:
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 });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user