This commit is contained in:
@@ -69,6 +69,15 @@ namespace AyaNova.Util
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool JTokenIsNullOrEmpty(JToken token)
|
||||
{
|
||||
return (token == null) ||
|
||||
(token.Type == JTokenType.Array && !token.HasValues) ||
|
||||
(token.Type == JTokenType.Object && !token.HasValues) ||
|
||||
(token.Type == JTokenType.String && token.ToString() == String.Empty) ||
|
||||
(token.Type == JTokenType.Null);
|
||||
}
|
||||
|
||||
//Contract resolver used for exporting to file translations and report templates
|
||||
//and ignoring specified propertes
|
||||
public class ShouldSerializeContractResolver : DefaultContractResolver
|
||||
@@ -88,6 +97,8 @@ namespace AyaNova.Util
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}//eoc
|
||||
|
||||
}//eons
|
||||
Reference in New Issue
Block a user