# JSON_EXTRACT_SCALAR() Function

### Description

Extracts a scalar string value from JSON data at the specified path.

### Syntax

```sql
JSON_EXTRACT_SCALAR(json, 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 |

### Example

```sql
SELECT
    JSON_EXTRACT_SCALAR(json_col, '$.email')
FROM
    rippling.employee.Employee
LIMIT
    5;
```

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

> 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.
