# load_json_to_dict

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/callbacks/wandb_callback/load_json_to_dict)

Load json file to a dictionary.

## Signature

```python
load_json_to_dict(
    json_path: Union[str, Path],
) -> dict
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `json_path` | `str` | Yes | The path to the json file. |

## Returns

`dict`

The dictionary representation of the json file.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/callbacks/wandb_callback.py#L28)