# json.to_text · Rell standard library · Chromia Docs (concept)

> pure function to_ text(): text Convert this JSON value to text. Note that this method is different to json.as_text() . This method converts this entire JSO

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/json/to_text/

FUNCTION

# json.to\_text

```signature
pure function to_text(): text
```

Convert this JSON value to text.

Note that this method is different to `json.as_text()`. This method converts this entire JSON value
to its text representation, regardless of what type of JSON value this is, and does not throw an
exception. `json.as_text()` retrieves this text-typed JSON value as Rell text, and throws an
exception if this JSON value is not of text type.

Since 0.9.0

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