This commit is contained in:
2022-03-25 19:48:34 +00:00
parent c5222bb9d2
commit d7a690e8f9
4 changed files with 15 additions and 8 deletions

View File

@@ -75,9 +75,11 @@ namespace AyaNova.Util
(token.Type == JTokenType.Array && !token.HasValues) ||
(token.Type == JTokenType.Object && !token.HasValues) ||
(token.Type == JTokenType.String && token.ToString() == String.Empty) ||
(token.Type == JTokenType.Null);
(token.Type == JTokenType.Null) ||
(token.Type == JTokenType.Undefined);
}
//Contract resolver used for exporting to file translations and report templates
//and ignoring specified propertes
public class ShouldSerializeContractResolver : DefaultContractResolver