> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.sigmacomputing.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.sigmacomputing.com/_mcp/server.

# Variant

> Use the Sigma Variant function to convert the input value to the variant data type.

The **Variant** function converts the input value to the [variant](/docs/data-types-and-formats) data type.

## Usage

```
Variant(input)
```

**input** (required) The input you would like to be interpreted as a variant.

## Notes

* All variant data is interpreted as JSON.
* The **Variant** function changes the input value's data type, but does not otherwise change the input value.
* The **Variant** function does not apply JSON formatting.

## Example

```
Variant([Cust Json as Text])
```

* Returns:

![](https://files.buildwithfern.com/sigma.docs.buildwithfern.com/608e062658328080bf2f0b9db0e806d340804e2935a0f077458d31b3d9532a01/assets/docs-images/6136873-999.png)

![](https://files.buildwithfern.com/sigma.docs.buildwithfern.com/82281caf795f3b7ee74c0f6dd2518fb66e0102b824567fca396a929c8bd7f6d5/assets/docs-images/f682f81-6.png)

## Related resources

* [Json](/docs/json-1)