# load_json

> **Function** in `langchain_community`

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

Load json file to a string.

## Signature

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

## Parameters

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

## Returns

`str`

The string representation of the json file.

---

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