# read_hooks_json

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/hooks/loading/read_hooks_json)

Decode one hooks document and fingerprint the exact bytes read.

## Signature

```python
read_hooks_json(
    path: Path,
) -> tuple[bool, JsonValue, tuple[HookDiagnostic, ...], str | None]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `path` | `Path` | Yes | Document path. |

## Returns

`bool`

Whether decoding succeeded, the decoded document, diagnostics, and the

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/hooks/loading.py#L351)