JsonDataLoadOptions class
Leave feedback
On this page
Represents options for parsing JSON data.
An instance of this class can be passed into constructors of JsonDataSource.
The JsonDataLoadOptions type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of this class with default options. |
| Property | Description |
|---|---|
| always_generate_root_object | The flag indicating whether a generated data source will always contain an object for a JSON root element; if the root element contains a single complex property, such an object is not created by default. |
| exact_date_time_parse_format | The exact format for parsing JSON date-time values while loading JSON. The default is None. |
| exact_date_time_parse_formats | The exact formats for parsing JSON date-time values while loading JSON. The default is None. |
| simple_value_parse_mode | The mode used for parsing JSON simple values (null, boolean, number, integer, and string) while loading JSON. This mode does not affect parsing of date-time values. The default is JsonSimpleValueParseMode.loose. |
from groupdocs.assembly.data import JsonDataLoadOptions, JsonDataSource, JsonSimpleValueParseMode
options = JsonDataLoadOptions()
options.always_generate_root_object = True
options.simple_value_parse_mode = JsonSimpleValueParseMode.STRICT
json_source = JsonDataSource("trade-accounts.json", options)
Task guides that use JsonDataLoadOptions:
- module
groupdocs.assembly.data
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.