# parse_and_check_json_markdown

> **Function** in `langchain_core`

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

Parse and check a JSON string from a Markdown string.

Checks that it contains the expected keys.

## Signature

```python
parse_and_check_json_markdown(
    text: str,
    expected_keys: list[str],
) -> dict
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | `str` | Yes | The Markdown string. |
| `expected_keys` | `list[str]` | Yes | The expected keys in the JSON string. |

## Returns

`dict`

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#L194)