# json_object

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/plugins/_json/json_object)

Normalize a decoded value to a JSON object.

## Signature

```python
json_object(
    value: object,
) -> JsonObject
```

## Returns

`JsonObject`

The normalized object, or an empty object for a non-object value.

---

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