-
-
Notifications
You must be signed in to change notification settings - Fork 244
Expand file tree
/
Copy pathNewtonsoftJsonParsingConfig.cs
More file actions
37 lines (32 loc) · 1.53 KB
/
NewtonsoftJsonParsingConfig.cs
File metadata and controls
37 lines (32 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using JsonConverter.Abstractions.Models;
namespace System.Linq.Dynamic.Core.NewtonsoftJson.Config;
/// <summary>
/// Configuration class for System.Linq.Dynamic.Core.NewtonsoftJson which implements the <see cref="ParsingConfig"/>.
/// </summary>
public class NewtonsoftJsonParsingConfig : ParsingConfig
{
/// <summary>
/// The default ParsingConfig for <see cref="NewtonsoftJsonParsingConfig"/>.
/// </summary>
public new static NewtonsoftJsonParsingConfig Default { get; } = new NewtonsoftJsonParsingConfig
{
ConvertObjectToSupportComparison = true
};
/// <summary>
/// The default <see cref="DynamicJsonClassOptions"/> to use.
/// </summary>
public DynamicJsonClassOptions? DynamicJsonClassOptions { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the objects in an array should be normalized before processing.
/// </summary>
public bool Normalize { get; set; } = true;
/// <summary>
/// Gets or sets the behavior to apply when a property value does not exist during normalization.
/// </summary>
/// <remarks>
/// Use this property to control how the normalization process handles properties that are missing or undefined.
/// The selected behavior may affect the output or error handling of normalization operations.
/// The default value is <see cref="NormalizationNonExistingPropertyBehavior.UseNull"/>.
/// </remarks>
public NormalizationNonExistingPropertyBehavior NormalizationNonExistingPropertyValueBehavior { get; set; }
}