A:防火墙增删改
This commit is contained in:
1 parent
a99fa53b8c
commit
2500be5009
2 files changed
+31
-4
No files matched your search
@@ -10,7 +10,10 @@ public static class JsonHelper
|
||||
{
|
||||
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
|
||||
WriteIndented = true,
|
||||
Converters = { new IpAddressConverter() }
|
||||
Converters =
|
||||
{
|
||||
new IpAddressConverter(), new JsonStringEnumConverter(JsonNamingPolicy.CamelCase, allowIntegerValues: false)
|
||||
},
|
||||
};
|
||||
|
||||
public static string ToJson<T>(T value) =>
|
||||
|
||||
Reference in new issue
Block a user