# parse_partial_json

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/utils/json/parse_partial_json)

Parse a JSON string that may be missing closing braces.

## Signature

```python
parse_partial_json(
    s: str,
    *,
    strict: bool = False,
) -> Any
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `s` | `str` | Yes | The JSON string to parse. |
| `strict` | `bool` | No | Whether to use strict parsing. (default: `False`) |

## Returns

`Any`

The parsed JSON object as a Python dictionary.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/8fec4e7ceee2c368b068c49f9fed453276e210e7/libs/core/langchain_core/utils/json.py#L58)