
## JsonDataSource(json_path) {#str}

Creates a new data source with data from a JSON file using default options for parsing JSON data.


```python
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) {#bytesio}

Creates a new data source with data from a JSON stream using default options for parsing JSON data.


```python
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) {#str_jsondataloadoptions}

Creates a new data source with data from a JSON file using the specified options for parsing JSON data.


```python
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](../../jsondataloadoptions/) | Options for parsing JSON data. |

## JsonDataSource(json_stream, options) {#bytesio_jsondataloadoptions}

Creates a new data source with data from a JSON stream using the specified options for parsing JSON data.


```python
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](../../jsondataloadoptions/) | Options for parsing JSON data. |

## See Also

* module [aspose.words.reporting](../../)
* class [JsonDataSource](../)

