JsonDataSource constructor
Contents
[
Hide
]JsonDataSource(json_path)
Creates a new data source with data from a JSON file using default options for parsing JSON data.
def __init__(self, json_path: str):
...
Parameter | Type | Description |
---|---|---|
json_path | str | The path to the JSON file to be used as the data source. |
JsonDataSource(json_stream)
Creates a new data source with data from a JSON stream using default options for parsing JSON data.
def __init__(self, json_stream: io.BytesIO):
...
Parameter | Type | Description |
---|---|---|
json_stream | io.BytesIO | The stream of JSON data to be used as the data source. |
JsonDataSource(json_path, options)
Creates a new data source with data from a JSON file using the specified options for parsing JSON data.
def __init__(self, json_path: str, options: aspose.words.reporting.JsonDataLoadOptions):
...
Parameter | Type | Description |
---|---|---|
json_path | str | The path to the JSON file to be used as the data source. |
options | JsonDataLoadOptions | Options for parsing JSON data. |
JsonDataSource(json_stream, options)
Creates a new data source with data from a JSON stream using the specified options for parsing JSON data.
def __init__(self, json_stream: io.BytesIO, options: aspose.words.reporting.JsonDataLoadOptions):
...
Parameter | Type | Description |
---|---|---|
json_stream | io.BytesIO | The stream of JSON data to be used as the data source. |
options | JsonDataLoadOptions | Options for parsing JSON data. |
See Also
- module aspose.words.reporting
- class JsonDataSource