JsonDataSource constructor

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):
    ...
ParameterTypeDescription
json_pathstrThe 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):
    ...
ParameterTypeDescription
json_streamio.BytesIOThe 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):
    ...
ParameterTypeDescription
json_pathstrThe path to the JSON file to be used as the data source.
optionsJsonDataLoadOptionsOptions 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):
    ...
ParameterTypeDescription
json_streamio.BytesIOThe stream of JSON data to be used as the data source.
optionsJsonDataLoadOptionsOptions for parsing JSON data.

See Also