# JSON_EXTRACT_PATH_TEXT() Function

### Description

Parses the first argument as a JSON string and returns the string value of the element pointed to by the path in the second argument

### Syntax

```sql
JSON_EXTRACT_PATH_TEXT(expression, path)
```

### Parameters

| Parameter | Description | Data Type | Required |
| --- | --- | --- | --- |
| _json_ | JSON value or string | JSON or string | Yes |
| _path_ | JSON path to the value to extract | JSON path | Yes |

#### Notes

-   Parser aliases normalize to JSONExtractScalar → JSON\_EXTRACT\_SCALAR mapping.

### Example

```sql
SELECT
    JSON_VALUE(json_col, '$.email')
FROM
    my_table t;
```

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference/json_extract_path_text

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
