예제 #1
0
 public static JsonSerializerOptions GetAdncDefaultOptions()
 {
     return(new JsonSerializerOptions()
     {
         PropertyNamingPolicy = JsonNamingPolicy.CamelCase
         ,
         Encoder = SystemTextJsonHelper.GetAdncDefaultEncoder()
         ,
         //该值指示是否允许、不允许或跳过注释
         ReadCommentHandling = JsonCommentHandling.Skip
         ,
         //dynamic与匿名类型序列化设置
         PropertyNameCaseInsensitive = true
         ,
         DictionaryKeyPolicy = JsonNamingPolicy.CamelCase
     });
 }