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

# Json

> Use the Sigma Json function to convert a value to JSON (or GeoJSON when converting geography data).

The **Json** function converts a value to JSON (or [GeoJSON](https://en.wikipedia.org/wiki/GeoJSON) when converting geography data).

> **Info**
>
> This function isn't compatible with all data platform connections. To check if your connection supports it, see [Supported data platforms and feature compatibility](/docs/region-warehouse-and-feature-support#supported-data-platforms-and-feature-compatibility).

## Syntax

```sigma
Json(input)
```

Function arguments:

<dl>
  <dt>
    input
  </dt>

  <dd>
    (Required) The data to convert to JSON
  </dd>
</dl>

## Notes

* On connections that support geography, the **Json** function can be used to convert valid geography data to [GeoJSON](https://en.wikipedia.org/wiki/GeoJSON). For more information, see the second example in [examples](#examples).
* In GeoJSON and the `Geography` data type, coordinate order is always `longitude, latitude`.

## Examples

```sigma
Json([Cust JSON as Text])
```

Returns Json values for the variant data in the *Cust JSON as Text* column.

![Table comparing customer JSON strings in the text column with JSON values returned in the JSON column.](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/sigma.docs.buildwithfern.com/1ddeeb516c01ee5b5bd616013fe7601a1374fb6a48e474675394fa23ca17a76f/assets/docs-images/38dc49e-99.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20261007%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20261007T071620Z&X-Amz-Expires=604800&X-Amz-Signature=0db5859d44d0991e46c489052215a3e0085341b033aa64043f5cfe736c883dbe&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

```sigma
Json(MakePoint(179, 90))
```

Converts the geography point (179, 90) to GeoJSON, and returns `{"coordinates":[179,90],"type":"Point"}` as variant data.

## Related resources

* [Variant](/docs/variant)