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

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

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

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

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

![](https://files.buildwithfern.com/sigma.docs.buildwithfern.com/1ddeeb516c01ee5b5bd616013fe7601a1374fb6a48e474675394fa23ca17a76f/assets/docs-images/38dc49e-99.png)

```
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)