# gtv.toJSON · Rell standard library · Chromia Docs (concept)

> pure function toJSON(): json Deprecated (for removal): Use 'to_json' instead Convert this GTV to a JSON value. Big integers are serialized as JSON numbers.

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/gtv/to-j-s-o-n/

FUNCTION

# gtv.toJSON

```signature
pure function toJSON(): json
```

**Deprecated** (for removal): Use 'to\_json' instead

Convert this GTV to a JSON value.

Big integers are serialized as JSON numbers. Note that when deserializing back with
`gtv.from_json()`, small big integers (within standard integer range) will become regular
integers, and large big integers cannot be deserialized (will cause a runtime error).

**Returns**

a JSON value equivalent to this GTV

Since 0.9.0

**Alias of** [gtv.to\_json](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/gtv/to_json/)

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/gtv/to-j-s-o-n.html)Generated API reference, mirrored from the live docs
