# OBJECT_CONSTRUCT() Function

### Description

Creates a Variant object from the list of key/value pairs in the arguments list

### Syntax

```sql
OBJECT_CONSTRUCT(key1, value1 [, key2, value2, ...])
```

### Parameters

| Parameter | Description | Data Type | Required |
| --- | --- | --- | --- |
| _key\_value\_pairs_ | Alternating keys and values. | Any | Yes |

#### Notes

-   The keys must be literal strings
-   The types are inferred from the selected values

### Example

```sql
SELECT
    OBJECT_CONSTRUCT('name', full_name, 'id', id)
FROM
    rippling.employee.Employee
LIMIT
    5;
```

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

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