JsonDataLoadOptions Class
Wordize.Reporting.JsonDataLoadOptions class. Represents options for parsing JSON data.
JsonDataLoadOptions class
Represents options for parsing JSON data.
public class JsonDataLoadOptions
Constructors
Name | Description |
---|---|
JsonDataLoadOptions() | The default constructor. |
Properties
Name | Description |
---|---|
AlwaysGenerateRootObject { get; set; } | Gets or sets a flag indicating whether a generated data source will always contain an object for a JSON root element. If a JSON root element contains a single complex property, such an object is not created by default. |
ExactDateTimeParseFormats { get; set; } | Gets or sets exact formats for parsing JSON date-time values while loading JSON. The default is null . |
PreserveSpaces { get; set; } | Gets or sets a flag indicating whether leading and trailing spaces should be preserved when loading string values of JSON data. |
SimpleValueParseMode { get; set; } | Gets or sets a mode for parsing JSON simple values (null, boolean, number, integer, and string) while loading JSON. Such a mode does not affect parsing of date-time values. The default is Loose. |
Examples
Shows how to fill template with data from JSON data source loaded from file using LINQ Reporting engine.
JsonDataSource ds = new JsonDataSource(MyDir + "ReportingData.json", new JsonDataLoadOptions() { AlwaysGenerateRootObject = true });
ReportBuilder.BuildReport(MyDir + "ReportingTemplateForeach.docx", ArtifactsDir + "ReportingForeachJsonDataSource.docx", ds);
See Also
- namespace Wordize.Reporting
- assembly Wordize